Function at 0x43d228
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x338
lea ebp, [esp - 4]
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x338], eax
push 0xa8
mov eax, 0x4a8d35
call fcn.00471cf0
mov eax, dword [ebp + 0x348]
xor ebx, ebx
cmp eax, ebx
jne 0x43d429
or esi, 0xffffffff
push esi
call fcn.0042ba18
push eax
lea ecx, [ebp + 0x2b4]
call fcn.0042b0ee
push esi
mov dword [ebp - 4], ebx
call fcn.0042ba22
push eax
lea ecx, [ebp + 0x230]
call fcn.0042b0ee
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], 1
call fcn.0042a8ca
test al, al
je 0x43d361
push dword [ebp + 0x344]
lea ecx, [ebp + 0x2b4]
call fcn.0042a979
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp + 0x2b4]
call fcn.0042a8f5
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, esi
jne 0x43d2fd
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], bl
call fcn.0042a79f
mov dword [ebp - 4], esi
lea ecx, [ebp + 0x2b4]
call fcn.0042a79f
xor eax, eax
jmp 0x43d989
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x43d2da
lea eax, [edi + 2]
push eax
mov dword [ebp - 0x38], ebx
call fcn.004715fe
pop ecx
mov esi, eax
push ebx
lea eax, [ebp - 0x38]
push eax
push edi
push esi
push dword [ebp - 0x34]
mov byte [edi + esi], bl
mov dword [ebp - 0x4c], esi
mov byte [edi + esi + 1], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], edi
je 0x43d407
push esi
call fcn.00472ec7
pop ecx
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], bl
call fcn.0042a79f
or dword [ebp - 4], 0xffffffff
jmp 0x43d2eb
call fcn.0042ba22
push eax
lea ecx, [ebp + 0x2b4]
call fcn.0042a979
push 2
push ebx
lea ecx, [ebp + 0x2b4]
call fcn.0042a8f5
push eax
call fcn.00424f8d
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push 1
push dword [ebp + 0x344]
mov dword [ebp - 0x1c], eax
push eax
call fcn.00425134
add esp, 0x20
test eax, eax
jne 0x43d2da
mov edi, dword [ebp + 0x22c]
cmp edi, ebx
je 0x43d2da
lea eax, [edi + 2]
push eax
call fcn.004715fe
push 3
mov esi, eax
push edi
mov byte [edi + esi], bl
push esi
mov byte [edi + esi + 1], bl
push dword [ebp - 0x3c]
mov dword [ebp - 0x4c], esi
push dword [ebp - 0x1c]
call fcn.0042521b
add esp, 0x18
cmp eax, ebx
je 0x43d3fe
cmp eax, 0x600
je 0x43d3fe
push esi
call fcn.00472ec7
push dword [ebp - 0x1c]
call fcn.00424628
pop ecx
jmp 0x43d34c
push dword [ebp - 0x1c]
call fcn.00424628
pop ecx
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], bl
call fcn.0042a79f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2b4]
call fcn.0042a79f
jmp 0x43d4b2
push eax
push dword [ebp + 0x344]
call fcn.0042ba09
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp esi, ebx
je 0x43d2f6
push esi
call fcn.0042ba09
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x44], eax
push esi
cmp eax, ebx
jne 0x43d469
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x43d2f6
call fcn.0042ba09
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x43d2f6
lea eax, [edi + 2]
push eax
call fcn.004715fe
pop ecx
mov esi, eax
push edi
push dword [ebp - 0x44]
mov byte [edi + esi], bl
mov dword [ebp - 0x4c], esi
mov byte [edi + esi + 1], bl
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.00472050
add esp, 0xc
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0x344], ebx
je 0x43d657
push str..svg
push dword [ebp + 0x344]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x43d657
fld dword [0x4b3214]
push ecx
fstp dword [esp]
push 0x4b3210
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0043d0fd
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x28], edi
cmp edi, ebx
je 0x43d5ea
fld dword [edi]
call fcn.00477870
push eax
call fcn.0042f8ae
fld dword [edi + 4]
mov dword [ebp - 0x1c], eax
call fcn.00477870
push eax
call fcn.0042f8ae
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
call fcn.0043d1eb
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x43d5ea
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x88]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
neg ecx
mov dword [ebp - 0x84], ecx
xor ecx, ecx
push 0x20
inc ecx
mov word [ebp - 0x80], cx
pop ecx
mov word [ebp - 0x7e], cx
mov ecx, dword [ebp - 0x18]
imul ecx, eax
push ebx
push ebx
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x50]
push eax
push ebx
lea eax, [ebp - 0x8c]
push eax
shl ecx, 2
push ebx
mov dword [ebp - 0x8c], 0x28
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x43d5e7
mov eax, dword [ebp - 0x1c]
mov ecx, eax
shl ecx, 2
push ecx
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x50]
call fcn.0042f7d1
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
sub esp, 0xc
fmul qword [0x4b3208]
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x3c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
push dword [ebp - 0x28]
push dword [ebp - 0x14]
call fcn.004383eb
add esp, 0x24
mov edi, dword [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
je 0x43d5f8
push dword [ebp - 0x14]
call fcn.00435f1f
pop ecx
cmp edi, ebx
je 0x43d603
push edi
call fcn.00435ed4
pop ecx
push esi
call fcn.00472ec7
mov edi, dword [ebp - 0x38]
pop ecx
cmp edi, ebx
je 0x43d2f6
push 0x98
call fcn.00471e15
mov esi, eax
pop ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 2
cmp esi, ebx
je 0x43d63a
lea ecx, [esi + 0x10]
call fcn.0042a77a
mov ebx, esi
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov dword [ebx], edi
mov byte [ebx + 0xc], 1
mov byte [ebx + 0xd], 1
mov eax, ebx
jmp 0x43d989
push ebx
push ebx
push ebx
push 0x4b31fc
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x1d], bl
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
call fcn.00452fd4
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x43d927
push eax
call fcn.0044ce67
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x43d92a
push 0x40
push fcn.0047b014
push dword [ebp - 0x10]
call fcn.00458eb4
push 0x4ceab8
push dword [ebp - 4]
push 0x4719ae
push 3
push eax
call fcn.0047b0c8
add esp, 0x20
test eax, eax
jne 0x43d927
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], eax
push 0x439087
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x10]
call fcn.00458759
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.0044fc8e
push ebx
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x5c], ebx
call fcn.00453d02
add esp, 0x38
cmp dword [ebp - 0x28], 0x10
jne 0x43d723
push dword [ebp - 0x10]
call fcn.004543b6
pop ecx
cmp dword [ebp - 0x18], 3
jne 0x43d732
push dword [ebp - 0x10]
call fcn.00454d89
pop ecx
cmp dword [ebp - 0x28], 8
jge 0x43d741
push dword [ebp - 0x10]
call fcn.00454d89
pop ecx
push 0x10
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.0045348c
add esp, 0xc
test eax, eax
je 0x43d75e
push dword [ebp - 0x10]
call fcn.00454d89
pop ecx
cmp dword [ebp - 0x18], ebx
je 0x43d769
cmp dword [ebp - 0x18], 4
jne 0x43d772
push dword [ebp - 0x10]
call fcn.00454e15
pop ecx
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.0044ff43
push ebx
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.00453d02
mov edi, dword [ebp - 0x2c]
push 0x28
pop esi
push esi
lea edi, [edi*4 + 3]
lea eax, [ebp - 0xb4]
push ebx
and edi, 0xfffffffc
push eax
mov dword [ebp - 0x48], edi
call fcn.00472400
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x30]
neg eax
add esp, 0x38
mov dword [ebp - 0xac], eax
xor eax, eax
push 0x20
inc eax
mov word [ebp - 0xa8], ax
pop eax
push ebx
push ebx
mov word [ebp - 0xa6], ax
lea eax, [ebp - 0x54]
push eax
push ebx
lea eax, [ebp - 0xb4]
push eax
push ebx
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push dword [ebp - 0x24]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x10]
call fcn.004534a6
push eax
push dword [ebp - 0x10]
call fcn.00453302
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x30], ebx
jbe 0x43d91a
mov dword [ebp - 0x40], ebx
push 1
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call fcn.00450327
add esp, 0x10
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x2c], ebx
jbe 0x43d908
xor eax, eax
mov dword [ebp - 0x44], eax
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x54]
shl esi, 2
add ecx, esi
add ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x18], 6
je 0x43d899
cmp dword [ebp - 0x18], 4
je 0x43d899
mov byte [ecx + 3], 0xff
mov edx, dword [ebp - 0x14]
mov dl, byte [eax + edx]
mov byte [ecx + 2], dl
mov edx, dword [ebp - 0x14]
mov dl, byte [eax + edx + 1]
mov byte [ecx + 1], dl
mov edx, dword [ebp - 0x14]
mov dl, byte [eax + edx + 2]
mov byte [ecx], dl
jmp 0x43d8f3
mov eax, dword [ebp - 0x14]
mov dl, byte [esi + eax + 3]
mov byte [ecx + 3], dl
mov eax, dword [ebp - 0x14]
movzx eax, byte [esi + eax]
movzx edx, dl
imul eax, edx
xor edx, edx
mov edi, 0xff
div edi
movzx edx, byte [ecx + 3]
mov byte [ebp - 0x1d], 1
mov byte [ecx + 2], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [esi + eax + 1]
imul eax, edx
xor edx, edx
div edi
movzx edx, byte [ecx + 3]
mov byte [ecx + 1], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [esi + eax + 2]
imul eax, edx
mov esi, edi
xor edx, edx
div esi
mov edi, dword [ebp - 0x48]
mov byte [ecx], al
mov eax, dword [ebp - 0x44]
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add eax, 3
mov dword [ebp - 0x44], eax
cmp ecx, dword [ebp - 0x2c]
jb 0x43d85d
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
add dword [ebp - 0x40], edi
cmp eax, dword [ebp - 0x30]
jb 0x43d83a
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004533fe
pop ecx
pop ecx
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x10], ebx
je 0x43d946
neg eax
sbb eax, eax
lea ecx, [ebp - 0x24]
and eax, ecx
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00450803
add esp, 0xc
push 0x98
call fcn.00471e15
mov esi, eax
pop ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 3
cmp esi, ebx
je 0x43d96d
lea ecx, [esi + 0x10]
call fcn.0042a77a
mov eax, esi
jmp 0x43d96f
xor eax, eax
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 8], ecx
mov cl, byte [ebp - 0x1d]
mov byte [eax + 0xc], cl
mov byte [eax + 0xd], bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x338]
xor ecx, ebp
call fcn.004717cc
add ebp, 0x33c
leave
ret