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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e080b
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x50c0e0]
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 0x4552f6
call fcn.004276c0
push eax
lea ecx, [ebp - 0xc0]
call fcn.00421bf0
mov dword [ebp - 4], 0
call fcn.004276d0
mov ecx, eax
call fcn.00422e00
movzx eax, al
test eax, eax
je 0x455012
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.004222a0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xc0]
call fcn.004220d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
jne 0x454f32
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.00421dd0
jmp 0x4553f6
push 0
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x454f67
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.00421dd0
jmp 0x4553f6
mov dword [ebp - 0x454], 0
mov eax, dword [ebp - 0x400]
push eax
call fcn.004b78b2
add esp, 4
mov dword [ebp - 0x478], eax
mov ecx, dword [ebp - 0x478]
mov dword [ebp - 0x404], ecx
push 0
lea edx, [ebp - 0x454]
push edx
mov eax, dword [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x404]
push ecx
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x454]
cmp ecx, dword [ebp - 0x400]
je 0x45500d
mov edx, dword [ebp - 0x404]
mov dword [ebp - 0x490], edx
mov eax, dword [ebp - 0x490]
push eax
call fcn.004b78bb
add esp, 4
mov dword [ebp - 0x404], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.00421dd0
jmp 0x4553f6
jmp 0x4552df
call fcn.004276d0
push eax
lea ecx, [ebp - 0xc0]
call fcn.004221e0
call fcn.004276f0
push eax
lea ecx, [ebp - 0x1c8]
call fcn.00421bf0
mov byte [ebp - 4], 1
mov dword [ebp - 0x414], 0
call fcn.00427ac0
movzx ecx, al
test ecx, ecx
je 0x45505b
call fcn.004276e0
mov dword [ebp - 0x414], eax
jmp 0x4550bc
push 0
lea ecx, [ebp - 0x1c8]
call fcn.004220d0
push eax
call fcn.00430590
add esp, 8
mov dword [ebp - 0x43c], eax
mov edx, dword [ebp - 0x43c]
push edx
lea ecx, [ebp - 0xc0]
call fcn.004220d0
push eax
call fcn.0043cbc0
add esp, 8
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x43c], 0
je 0x4550bc
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x494], eax
mov ecx, dword [ebp - 0x494]
push ecx
call fcn.004b78bb
add esp, 4
cmp dword [ebp - 0x414], 0
jne 0x4550eb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.00421dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.00421dd0
jmp 0x4553f6
mov dword [ebp - 0x458], 0
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x144]
call fcn.00421c30
mov byte [ebp - 4], 2
push 0x4e4908
push 0x4e4834
lea ecx, [ebp - 0x144]
call fcn.004231e0
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x458]
push ecx
push 1
lea ecx, [ebp - 0x144]
call fcn.004220d0
push eax
mov edx, dword [ebp - 0x414]
push edx
call fcn.0043beb0
add esp, 0x14
test eax, eax
je 0x455183
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.00421dd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.00421dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.00421dd0
jmp 0x4553f6
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x4551cd
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.00421dd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.00421dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.00421dd0
jmp 0x4553f6
mov ecx, dword [ebp - 0x400]
push ecx
call fcn.004b78b2
add esp, 4
mov dword [ebp - 0x498], eax
mov edx, dword [ebp - 0x498]
mov dword [ebp - 0x404], edx
mov eax, dword [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x404]
push ecx
mov edx, dword [ebp - 0x458]
push edx
mov eax, dword [ebp - 0x414]
push eax
call fcn.0043d440
add esp, 0x10
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0
je 0x4552a6
cmp dword [ebp - 0x45c], 0x600
je 0x4552a6
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x49c], ecx
mov edx, dword [ebp - 0x49c]
push edx
call fcn.004b78bb
add esp, 4
mov dword [ebp - 0x404], 0
call fcn.00427ac0
movzx eax, al
test eax, eax
jne 0x455271
mov ecx, dword [ebp - 0x414]
push ecx
call fcn.0043bad0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.00421dd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.00421dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.00421dd0
jmp 0x4553f6
call fcn.00427ac0
movzx edx, al
test edx, edx
jne 0x4552c1
mov eax, dword [ebp - 0x414]
push eax
call fcn.0043bad0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.00421dd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.00421dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.00421dd0
jmp 0x4553ee
mov dword [ebp - 0x41c], 0
cmp dword [ebp + 0x14], 0
je 0x455311
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x41c], ecx
jmp 0x45531c
call fcn.004276a0
mov dword [ebp - 0x41c], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x455345
jmp 0x4553f6
mov edx, dword [ebp - 0x428]
push edx
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x455377
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4553f6
mov edx, dword [ebp - 0x428]
push edx
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x45539c
jmp 0x4553f6
mov ecx, dword [ebp - 0x400]
push ecx
call fcn.004b78b2
add esp, 4
mov dword [ebp - 0x468], eax
mov edx, dword [ebp - 0x468]
mov dword [ebp - 0x404], edx
mov eax, dword [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov edx, dword [ebp - 0x404]
push edx
call fcn.004ba310
add esp, 0xc
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor ecx, ecx
jne 0x454ea0
cmp dword [ebp - 0x404], 0
jne 0x4554ec
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 - 0x42c], eax
cmp dword [ebp - 0x42c], 0xffffffff
jne 0x455433
jmp 0x4554ec
push 0
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x455456
jmp 0x4554ec
mov dword [ebp - 0x460], 0
mov ecx, dword [ebp - 0x400]
push ecx
call fcn.004b78b2
add esp, 4
mov dword [ebp - 0x46c], eax
mov edx, dword [ebp - 0x46c]
mov dword [ebp - 0x404], edx
push 0
lea eax, [ebp - 0x460]
push eax
mov ecx, dword [ebp - 0x400]
push ecx
mov edx, dword [ebp - 0x404]
push edx
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x42c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x460]
cmp edx, dword [ebp - 0x400]
je 0x4554e5
mov eax, dword [ebp - 0x404]
mov dword [ebp - 0x470], eax
mov ecx, dword [ebp - 0x470]
push ecx
call fcn.004b78bb
add esp, 4
mov dword [ebp - 0x404], 0
jmp 0x4554ec
cmp dword [ebp - 0x404], 0
jne 0x4554fc
xor eax, eax
jmp 0x4559c8
mov dword [ebp - 0x410], 0
push 4
lea edx, [ebp - 0x4a0]
push edx
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x434]
push ecx
mov edx, dword [ebp - 0x400]
push edx
mov eax, dword [ebp - 0x404]
push eax
call fcn.0046e920
add esp, 0x18
mov dword [ebp - 0x410], eax
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x474], ecx
mov edx, dword [ebp - 0x474]
push edx
call fcn.004b78bb
add esp, 4
cmp dword [ebp - 0x410], 0
jne 0x455564
xor eax, eax
jmp 0x4559c8
push 0x2c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.004ba890
add esp, 0xc
mov dword [ebp - 0x3c], 0x28
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x438]
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 - 0x434]
imul edx, dword [ebp - 0x438]
shl edx, 2
mov dword [ebp - 0x28], edx
mov byte [ebp - 0x405], 0
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 - 0x420], eax
cmp dword [ebp - 0x420], 0
jne 0x4555fb
xor eax, eax
jmp 0x4559c8
mov dword [ebp - 0x3fc], 0
jmp 0x455616
mov edx, dword [ebp - 0x3fc]
add edx, 1
mov dword [ebp - 0x3fc], edx
mov eax, dword [ebp - 0x434]
imul eax, dword [ebp - 0x438]
cmp dword [ebp - 0x3fc], eax
jge 0x4557ed
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 0x45572c
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 0x45578a
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 0x4557e8
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 0x455607
mov ecx, dword [ebp - 0x410]
push ecx
call fcn.0046e900
add esp, 4
xor edx, edx
je 0x455905
mov dword [ebp - 0x444], 0
lea eax, [ebp - 0x444]
push eax
push 0x26200a
mov ecx, dword [ebp - 0x420]
push ecx
call fcn.004543e0
add esp, 0xc
test eax, eax
jne 0x455905
xor edx, edx
shl edx, 0x18
xor eax, eax
shl eax, 0x10
xor ecx, ecx
shl ecx, 8
xor esi, esi
or esi, ecx
or esi, eax
or esi, edx
mov dword [ebp - 0x48c], esi
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x48c]
mov dword [ebp - 0x47c], ecx
mov edx, dword [ebp - 0x47c]
push edx
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x464]
mov edx, dword [ecx + 4]
push edx
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
je 0x4558be
mov eax, dword [ebp - 0x464]
mov ecx, dword [ebp - 0x430]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x480], edx
jmp 0x4558ca
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x480], eax
mov ecx, dword [ebp - 0x444]
mov dword [ebp - 0x448], ecx
cmp dword [ebp - 0x448], 0
je 0x4558fb
push 1
mov edx, dword [ebp - 0x448]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x448]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x484], eax
jmp 0x455905
mov dword [ebp - 0x484], 0
push 0xa0
call fcn.004b7882
add esp, 4
mov dword [ebp - 0x44c], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x44c], 0
je 0x455944
mov ecx, dword [ebp - 0x44c]
add ecx, 0x18
call fcn.00421c70
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x450], eax
jmp 0x45594e
mov dword [ebp - 0x450], 0
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x488], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x488]
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x418]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x420]
mov dword [edx], eax
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x434]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x438]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x418]
mov al, byte [ebp - 0x405]
mov byte [edx + 0x14], 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.004b8378
mov esp, ebp
pop ebp
ret