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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6571f4
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x6f03ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x404], 0
mov dword [ebp - 0x400], 0
cmp dword [ebp + 0xc], 0
jne 0x43cb46
call fcn.00419aa0
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040ed90
mov dword [ebp - 4], 0
call fcn.00419ab0
mov ecx, eax
call fcn.0040fe60
movzx eax, al
test eax, eax
je 0x43c862
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.0040f300
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xc0]
call fcn.0040f1c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0xffffffff
jne 0x43c782
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0040ef70
jmp 0x43cc46
push 0
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x43c7b7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0040ef70
jmp 0x43cc46
mov dword [ebp - 0x46c], 0
mov eax, dword [ebp - 0x400]
push eax
call fcn.004cdd17
add esp, 4
mov dword [ebp - 0x484], eax
mov ecx, dword [ebp - 0x484]
mov dword [ebp - 0x404], ecx
push 0
lea edx, [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x404]
push ecx
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x46c]
cmp ecx, dword [ebp - 0x400]
je 0x43c85d
mov edx, dword [ebp - 0x404]
mov dword [ebp - 0x4a4], edx
mov eax, dword [ebp - 0x4a4]
push eax
call fcn.004cdd20
add esp, 4
mov dword [ebp - 0x404], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0040ef70
jmp 0x43cc46
jmp 0x43cb2f
call fcn.00419ab0
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040f2d0
call fcn.00419ad0
push eax
lea ecx, [ebp - 0x1c8]
call fcn.0040ed90
mov byte [ebp - 4], 1
mov dword [ebp - 0x41c], 0
call fcn.00419ee0
movzx ecx, al
test ecx, ecx
je 0x43c8ab
call fcn.00419ac0
mov dword [ebp - 0x41c], eax
jmp 0x43c90c
push 0
lea ecx, [ebp - 0x1c8]
call fcn.0040f1c0
push eax
call fcn.004233f0
add esp, 8
mov dword [ebp - 0x440], eax
mov edx, dword [ebp - 0x440]
push edx
lea ecx, [ebp - 0xc0]
call fcn.0040f1c0
push eax
call fcn.004246c0
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x440], 0
je 0x43c90c
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x4a8], eax
mov ecx, dword [ebp - 0x4a8]
push ecx
call fcn.004cdd20
add esp, 4
cmp dword [ebp - 0x41c], 0
jne 0x43c93b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.0040ef70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0040ef70
jmp 0x43cc46
mov dword [ebp - 0x470], 0
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x144]
call fcn.0040edd0
mov byte [ebp - 4], 2
push 0x6da5e4
push 0x6da5e0
lea ecx, [ebp - 0x144]
call fcn.00410250
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x470]
push ecx
push 1
lea ecx, [ebp - 0x144]
call fcn.0040f1c0
push eax
mov edx, dword [ebp - 0x41c]
push edx
call fcn.004239b0
add esp, 0x14
test eax, eax
je 0x43c9d3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.0040ef70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.0040ef70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0040ef70
jmp 0x43cc46
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x43ca1d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.0040ef70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.0040ef70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0040ef70
jmp 0x43cc46
mov ecx, dword [ebp - 0x400]
push ecx
call fcn.004cdd17
add esp, 4
mov dword [ebp - 0x4ac], eax
mov edx, dword [ebp - 0x4ac]
mov dword [ebp - 0x404], edx
mov eax, dword [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x404]
push ecx
mov edx, dword [ebp - 0x470]
push edx
mov eax, dword [ebp - 0x41c]
push eax
call fcn.00424f50
add esp, 0x10
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0
je 0x43caf6
cmp dword [ebp - 0x474], 0x600
je 0x43caf6
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x4b0], ecx
mov edx, dword [ebp - 0x4b0]
push edx
call fcn.004cdd20
add esp, 4
mov dword [ebp - 0x404], 0
call fcn.00419ee0
movzx eax, al
test eax, eax
jne 0x43cac1
mov ecx, dword [ebp - 0x41c]
push ecx
call fcn.004235d0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.0040ef70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.0040ef70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0040ef70
jmp 0x43cc46
call fcn.00419ee0
movzx edx, al
test edx, edx
jne 0x43cb11
mov eax, dword [ebp - 0x41c]
push eax
call fcn.004235d0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.0040ef70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.0040ef70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0040ef70
jmp 0x43cc3e
mov dword [ebp - 0x428], 0
cmp dword [ebp + 0x14], 0
je 0x43cb61
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x428], ecx
jmp 0x43cb6c
call fcn.00419a80
mov dword [ebp - 0x428], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jne 0x43cb95
jmp 0x43cc46
mov edx, dword [ebp - 0x434]
push edx
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
jne 0x43cbc7
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x43cc46
mov edx, dword [ebp - 0x434]
push edx
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x43cbec
jmp 0x43cc46
mov ecx, dword [ebp - 0x400]
push ecx
call fcn.004cdd17
add esp, 4
mov dword [ebp - 0x480], eax
mov edx, dword [ebp - 0x480]
mov dword [ebp - 0x404], edx
mov eax, dword [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x444]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov edx, dword [ebp - 0x404]
push edx
call fcn.004e5ba0
add esp, 0xc
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor ecx, ecx
jne 0x43c6f0
cmp dword [ebp - 0x404], 0
jne 0x43cd3c
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0xffffffff
jne 0x43cc83
jmp 0x43cd3c
push 0
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x43cca6
jmp 0x43cd3c
mov dword [ebp - 0x478], 0
mov ecx, dword [ebp - 0x400]
push ecx
call fcn.004cdd17
add esp, 4
mov dword [ebp - 0x49c], eax
mov edx, dword [ebp - 0x49c]
mov dword [ebp - 0x404], edx
push 0
lea eax, [ebp - 0x478]
push eax
mov ecx, dword [ebp - 0x400]
push ecx
mov edx, dword [ebp - 0x404]
push edx
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x478]
cmp edx, dword [ebp - 0x400]
je 0x43cd35
mov eax, dword [ebp - 0x404]
mov dword [ebp - 0x488], eax
mov ecx, dword [ebp - 0x488]
push ecx
call fcn.004cdd20
add esp, 4
mov dword [ebp - 0x404], 0
jmp 0x43cd3c
cmp dword [ebp - 0x404], 0
jne 0x43cd4c
xor eax, eax
jmp 0x43d32e
mov byte [ebp - 0x405], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x47c], 0
mov edx, dword [ebp - 0x47c]
mov dword [ebp - 0x420], edx
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x424], eax
push 4
lea ecx, [ebp - 0x47c]
push ecx
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x400]
push ecx
mov edx, dword [ebp - 0x404]
push edx
call fcn.004547e0
add esp, 0x18
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x43d04d
push 0x2c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.004e59d0
add esp, 0xc
mov dword [ebp - 0x3c], 0x28
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x420]
neg edx
mov dword [ebp - 0x34], edx
mov eax, 1
mov word [ebp - 0x30], ax
mov ecx, 0x20
mov word [ebp - 0x2e], cx
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x424]
imul edx, dword [ebp - 0x420]
shl edx, 2
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x40c], 0
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0
je 0x43d04d
mov dword [ebp - 0x3fc], 0
jmp 0x43ce67
mov edx, dword [ebp - 0x3fc]
add edx, 1
mov dword [ebp - 0x3fc], edx
mov eax, dword [ebp - 0x424]
imul eax, dword [ebp - 0x420]
cmp dword [ebp - 0x3fc], eax
jge 0x43d03e
mov ecx, dword [ebp - 0x3fc]
mov edx, dword [ebp - 0x40c]
mov eax, dword [ebp - 0x3fc]
mov esi, dword [ebp - 0x410]
mov al, byte [esi + eax*4 + 3]
mov byte [edx + ecx*4 + 3], al
mov ecx, dword [ebp - 0x3fc]
mov edx, dword [ebp - 0x40c]
movzx eax, byte [edx + ecx*4 + 3]
cmp eax, 0xff
jge 0x43cf7d
mov ecx, dword [ebp - 0x3fc]
mov edx, dword [ebp - 0x410]
movzx eax, byte [edx + ecx*4 + 2]
mov ecx, dword [ebp - 0x3fc]
mov edx, dword [ebp - 0x410]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x3fc]
mov ecx, dword [ebp - 0x40c]
mov byte [ecx + edx*4], al
mov edx, dword [ebp - 0x3fc]
mov eax, dword [ebp - 0x410]
movzx eax, byte [eax + edx*4 + 1]
mov ecx, dword [ebp - 0x3fc]
mov edx, dword [ebp - 0x410]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x3fc]
mov ecx, dword [ebp - 0x40c]
mov byte [ecx + edx*4 + 1], al
mov edx, dword [ebp - 0x3fc]
mov eax, dword [ebp - 0x410]
movzx eax, byte [eax + edx*4]
mov ecx, dword [ebp - 0x3fc]
mov edx, dword [ebp - 0x410]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x3fc]
mov ecx, dword [ebp - 0x40c]
mov byte [ecx + edx*4 + 2], al
mov byte [ebp - 0x405], 1
jmp 0x43cfdb
mov edx, dword [ebp - 0x3fc]
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x3fc]
mov esi, dword [ebp - 0x410]
mov cl, byte [esi + ecx*4 + 2]
mov byte [eax + edx*4], cl
mov edx, dword [ebp - 0x3fc]
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x3fc]
mov esi, dword [ebp - 0x410]
mov cl, byte [esi + ecx*4 + 1]
mov byte [eax + edx*4 + 1], cl
mov edx, dword [ebp - 0x3fc]
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x3fc]
mov esi, dword [ebp - 0x410]
mov cl, byte [esi + ecx*4]
mov byte [eax + edx*4 + 2], cl
mov edx, dword [ebp - 0x3fc]
mov eax, dword [ebp - 0x40c]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [ebp + 0x10]
jne 0x43d039
mov edx, dword [ebp - 0x3fc]
mov eax, dword [ebp - 0x40c]
mov byte [eax + edx*4], 0
mov ecx, dword [ebp - 0x3fc]
mov edx, dword [ebp - 0x40c]
mov byte [edx + ecx*4 + 1], 0
mov eax, dword [ebp - 0x3fc]
mov ecx, dword [ebp - 0x40c]
mov byte [ecx + eax*4 + 2], 0
mov edx, dword [ebp - 0x3fc]
mov eax, dword [ebp - 0x40c]
mov byte [eax + edx*4 + 3], 0
mov byte [ebp - 0x405], 1
jmp 0x43ce58
mov ecx, dword [ebp - 0x410]
push ecx
call fcn.004547c0
add esp, 4
mov edx, dword [ebp - 0x400]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x48c], eax
mov ecx, dword [ebp - 0x400]
push ecx
mov edx, dword [ebp - 0x404]
push edx
mov eax, dword [ebp - 0x48c]
push eax
call fcn.004e5ba0
add esp, 0xc
mov dword [ebp - 0x43c], 0
lea ecx, [ebp - 0x43c]
push ecx
push 1
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x490], eax
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp - 0x44c], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x44c], 0
je 0x43d0f7
push 0
mov ecx, dword [ebp - 0x490]
push ecx
mov ecx, dword [ebp - 0x44c]
call fcn.004345b0
mov dword [ebp - 0x450], eax
jmp 0x43d101
mov dword [ebp - 0x450], 0
mov edx, dword [ebp - 0x450]
mov dword [ebp - 0x494], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x494]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x43d14e
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x498], edx
mov eax, dword [ebp - 0x414]
mov dword [eax + 8], 0
cmp dword [ebp - 0x498], 0
je 0x43d179
mov dword [ebp - 0x414], 0
mov ecx, dword [ebp - 0x43c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x43c]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x404]
mov dword [ebp - 0x4b4], eax
mov ecx, dword [ebp - 0x4b4]
push ecx
call fcn.004cdd20
add esp, 4
mov dword [ebp - 0x404], 0
cmp dword [ebp - 0x42c], 0
jne 0x43d1b7
cmp dword [ebp - 0x414], 0
jne 0x43d1b7
xor eax, eax
jmp 0x43d32e
cmp dword [ebp - 0x42c], 0
jne 0x43d265
cmp dword [ebp - 0x414], 0
je 0x43d265
mov dword [ebp - 0x458], 0
lea edx, [ebp - 0x458]
push edx
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 4]
push ecx
call sub.gdiplus.dll_GdipGetImageWidth
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x454], 0
je 0x43d20f
mov edx, dword [ebp - 0x414]
mov eax, dword [ebp - 0x454]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x460], 0
lea edx, [ebp - 0x460]
push edx
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax + 4]
push ecx
call sub.gdiplus.dll_GdipGetImageHeight
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0
je 0x43d259
mov edx, dword [ebp - 0x414]
mov eax, dword [ebp - 0x45c]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x460]
mov dword [ebp - 0x420], ecx
push 0xa4
call fcn.004cdcb6
add esp, 4
mov dword [ebp - 0x464], eax
mov dword [ebp - 4], 4
cmp dword [ebp - 0x464], 0
je 0x43d29b
mov ecx, dword [ebp - 0x464]
call fcn.00416aa0
mov dword [ebp - 0x468], eax
jmp 0x43d2a5
mov dword [ebp - 0x468], 0
mov edx, dword [ebp - 0x468]
mov dword [ebp - 0x4a0], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4a0]
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x418]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x418]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
mov dword [eax], ecx
mov edx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x42c]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x424]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x420]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x418]
mov al, byte [ebp - 0x405]
mov byte [edx + 0x18], al
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cdca5
mov esp, ebp
pop ebp
ret