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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7ad6
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x1011b3bc]
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 0x10048e66
call fcn.10036cb0
push eax
lea ecx, [ebp - 0xc0]
call fcn.1002b150
mov dword [ebp - 4], 0
call fcn.10036cc0
mov ecx, eax
call fcn.1002c200
movzx eax, al
test eax, eax
je 0x10048b82
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.1002b6a0
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
lea ecx, [ebp - 0xc0]
call fcn.1002b560
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
jne 0x10048aa2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.1002b330
jmp 0x10048f66
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 0x10048ad7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.1002b330
jmp 0x10048f66
mov dword [ebp - 0x450], 0
mov eax, dword [ebp - 0x400]
push eax
call fcn.100bf593
add esp, 4
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x404], ecx
push 0
lea edx, [ebp - 0x450]
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 - 0x450]
cmp ecx, dword [ebp - 0x400]
je 0x10048b7d
mov edx, dword [ebp - 0x404]
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x45c]
push eax
call fcn.100bef31
add esp, 4
mov dword [ebp - 0x404], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.1002b330
jmp 0x10048f66
jmp 0x10048e4f
call fcn.10036cc0
push eax
lea ecx, [ebp - 0xc0]
call fcn.1002b670
call fcn.10036ce0
push eax
lea ecx, [ebp - 0x1c8]
call fcn.1002b150
mov byte [ebp - 4], 1
mov dword [ebp - 0x414], 0
call fcn.100371b0
movzx ecx, al
test ecx, ecx
je 0x10048bcb
call fcn.10036cd0
mov dword [ebp - 0x414], eax
jmp 0x10048c2c
push 0
lea ecx, [ebp - 0x1c8]
call fcn.1002b560
push eax
call fcn.1003f980
add esp, 8
mov dword [ebp - 0x434], eax
mov edx, dword [ebp - 0x434]
push edx
lea ecx, [ebp - 0xc0]
call fcn.1002b560
push eax
call fcn.1006b950
add esp, 8
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x434], 0
je 0x10048c2c
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x460]
push ecx
call fcn.100bef31
add esp, 4
cmp dword [ebp - 0x414], 0
jne 0x10048c5b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.1002b330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.1002b330
jmp 0x10048f66
mov dword [ebp - 0x44c], 0
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x144]
call fcn.1002b190
mov byte [ebp - 4], 2
push 0x100ebcb8
push 0x101057f4
lea ecx, [ebp - 0x144]
call fcn.1002c5f0
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x44c]
push ecx
push 1
lea ecx, [ebp - 0x144]
call fcn.1002b560
push eax
mov edx, dword [ebp - 0x414]
push edx
call fcn.1006ac40
add esp, 0x14
test eax, eax
je 0x10048cf3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.1002b330
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.1002b330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.1002b330
jmp 0x10048f66
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x10048d3d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.1002b330
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.1002b330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.1002b330
jmp 0x10048f66
mov ecx, dword [ebp - 0x400]
push ecx
call fcn.100bf593
add esp, 4
mov dword [ebp - 0x464], eax
mov edx, dword [ebp - 0x464]
mov dword [ebp - 0x404], edx
mov eax, dword [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x404]
push ecx
mov edx, dword [ebp - 0x44c]
push edx
mov eax, dword [ebp - 0x414]
push eax
call fcn.1006c1e0
add esp, 0x10
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
je 0x10048e16
cmp dword [ebp - 0x448], 0x600
je 0x10048e16
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x468], ecx
mov edx, dword [ebp - 0x468]
push edx
call fcn.100bef31
add esp, 4
mov dword [ebp - 0x404], 0
call fcn.100371b0
movzx eax, al
test eax, eax
jne 0x10048de1
mov ecx, dword [ebp - 0x414]
push ecx
call fcn.1006a860
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.1002b330
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.1002b330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.1002b330
jmp 0x10048f66
call fcn.100371b0
movzx edx, al
test edx, edx
jne 0x10048e31
mov eax, dword [ebp - 0x414]
push eax
call fcn.1006a860
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.1002b330
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.1002b330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.1002b330
jmp 0x10048f5e
mov dword [ebp - 0x41c], 0
cmp dword [ebp + 0x14], 0
je 0x10048e81
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x41c], ecx
jmp 0x10048e8c
call fcn.10036c90
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 - 0x420], eax
cmp dword [ebp - 0x420], 0
jne 0x10048eb5
jmp 0x10048f66
mov edx, dword [ebp - 0x420]
push edx
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x454], 0
jne 0x10048ee7
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x10048f66
mov edx, dword [ebp - 0x420]
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 0x10048f0c
jmp 0x10048f66
mov ecx, dword [ebp - 0x400]
push ecx
call fcn.100bf593
add esp, 4
mov dword [ebp - 0x46c], eax
mov edx, dword [ebp - 0x46c]
mov dword [ebp - 0x404], edx
mov eax, dword [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov edx, dword [ebp - 0x404]
push edx
call fcn.100c0c10
add esp, 0xc
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor ecx, ecx
jne 0x10048a10
cmp dword [ebp - 0x404], 0
jne 0x1004905c
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0xffffffff
jne 0x10048fa3
jmp 0x1004905c
push 0
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x10048fc6
jmp 0x1004905c
mov dword [ebp - 0x43c], 0
mov ecx, dword [ebp - 0x400]
push ecx
call fcn.100bf593
add esp, 4
mov dword [ebp - 0x470], eax
mov edx, dword [ebp - 0x470]
mov dword [ebp - 0x404], edx
push 0
lea eax, [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x400]
push ecx
mov edx, dword [ebp - 0x404]
push edx
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x43c]
cmp edx, dword [ebp - 0x400]
je 0x10049055
mov eax, dword [ebp - 0x404]
mov dword [ebp - 0x474], eax
mov ecx, dword [ebp - 0x474]
push ecx
call fcn.100bef31
add esp, 4
mov dword [ebp - 0x404], 0
jmp 0x1004905c
cmp dword [ebp - 0x404], 0
jne 0x1004906c
xor eax, eax
jmp 0x1004942f
mov dword [ebp - 0x410], 0
push 4
lea edx, [ebp - 0x480]
push edx
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp - 0x400]
push edx
mov eax, dword [ebp - 0x404]
push eax
call fcn.1005eea0
add esp, 0x18
mov dword [ebp - 0x410], eax
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x478], ecx
mov edx, dword [ebp - 0x478]
push edx
call fcn.100bef31
add esp, 4
cmp dword [ebp - 0x410], 0
jne 0x100490d4
xor eax, eax
jmp 0x1004942f
push 0x2c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.100c1710
add esp, 0xc
mov dword [ebp - 0x3c], 0x28
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x430]
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 - 0x42c]
imul edx, dword [ebp - 0x430]
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 - 0x444], eax
cmp dword [ebp - 0x444], 0
jne 0x1004916b
xor eax, eax
jmp 0x1004942f
mov dword [ebp - 0x3fc], 0
jmp 0x10049186
mov edx, dword [ebp - 0x3fc]
add edx, 1
mov dword [ebp - 0x3fc], edx
mov eax, dword [ebp - 0x42c]
imul eax, dword [ebp - 0x430]
cmp dword [ebp - 0x3fc], eax
jge 0x1004935d
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 0x1004929c
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 0x100492fa
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 0x10049358
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 0x10049177
mov ecx, dword [ebp - 0x410]
push ecx
call fcn.1005ee80
add esp, 4
push 0xa0
call fcn.100bee03
add esp, 4
mov dword [ebp - 0x438], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x438], 0
je 0x100493ab
mov ecx, dword [ebp - 0x438]
add ecx, 0x18
call fcn.1002b1d0
mov edx, dword [ebp - 0x438]
mov dword [ebp - 0x440], edx
jmp 0x100493b5
mov dword [ebp - 0x440], 0
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x47c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - 0x418], ecx
mov edx, dword [ebp - 0x418]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x418]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x444]
mov dword [ecx], edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x42c]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x430]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x418]
mov dl, byte [ebp - 0x405]
mov byte [ecx + 0x14], dl
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.100be7ca
mov esp, ebp
pop ebp
ret