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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536296
mov eax, dword fs:[0]
push eax
sub esp, 0x270
push esi
push edi
lea edi, [ebp - 0x27c]
mov ecx, 0x9c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x56eab8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0
jne 0x49362f
call fcn.00447080
push eax
lea ecx, [ebp - 0x60]
call fcn.00450590
mov dword [ebp - 4], 0
call fcn.00447090
mov ecx, eax
call fcn.00450870
movzx eax, al
test eax, eax
je 0x493477
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00450f20
mov esi, esp
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x60]
call fcn.004508f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.004ad900
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0xffffffff
jne 0x493396
mov dword [ebp - 0x240], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004505e0
mov eax, dword [ebp - 0x240]
jmp 0x493ae7
mov esi, esp
push 0
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.004ad900
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4933d8
mov dword [ebp - 0x244], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004505e0
mov eax, dword [ebp - 0x244]
jmp 0x493ae7
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x18]
push eax
call fcn.004acec0
add esp, 4
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x14], ecx
mov esi, esp
push 0
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.004ad900
mov esi, esp
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004ad900
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [ebp - 0x18]
je 0x493472
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24c], edx
mov eax, dword [ebp - 0x24c]
push eax
call fcn.004b2b90
add esp, 4
mov dword [ebp - 0x250], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004505e0
mov eax, dword [ebp - 0x250]
jmp 0x493ae7
jmp 0x49361b
call fcn.00447090
push eax
lea ecx, [ebp - 0x60]
call fcn.00450ee0
mov dword [ebp - 0x78], 0
call fcn.004470a0
movzx ecx, al
test ecx, ecx
je 0x4934a2
call fcn.004470b0
mov dword [ebp - 0x78], eax
jmp 0x4934ba
push 2
push 0
lea ecx, [ebp - 0x60]
call fcn.004508f0
push eax
call fcn.004915f0
add esp, 0xc
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x4934e4
mov dword [ebp - 0x254], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004505e0
mov eax, dword [ebp - 0x254]
jmp 0x493ae7
lea edx, [ebp - 0x1a8]
push edx
lea eax, [ebp - 0x1b4]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x78]
push edx
call fcn.004918d0
add esp, 0x14
test eax, eax
je 0x49352c
mov dword [ebp - 0x258], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004505e0
mov eax, dword [ebp - 0x258]
jmp 0x493ae7
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x49355c
mov dword [ebp - 0x25c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004505e0
mov eax, dword [ebp - 0x25c]
jmp 0x493ae7
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004acec0
add esp, 4
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x14], edx
push 3
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1b4]
push edx
mov eax, dword [ebp - 0x78]
push eax
call fcn.00491ad0
add esp, 0x14
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
je 0x493603
cmp dword [ebp - 0x1bc], 0x600
je 0x493603
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x264]
push edx
call fcn.004b2b90
add esp, 4
call fcn.004470a0
movzx eax, al
test eax, eax
jne 0x4935df
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.00491b60
add esp, 4
mov dword [ebp - 0x268], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004505e0
mov eax, dword [ebp - 0x268]
jmp 0x493ae7
call fcn.004470a0
movzx edx, al
test edx, edx
jne 0x49361b
mov eax, dword [ebp - 0x78]
push eax
call fcn.00491b60
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004505e0
jmp 0x49372e
mov esi, esp
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00447060
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp esi, esp
call fcn.004ad900
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jne 0x493662
xor eax, eax
jmp 0x493ae7
mov esi, esp
mov eax, dword [ebp - 0x1c0]
push eax
call fcn.00447060
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call fcn.004ad900
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0
jne 0x4936aa
mov esi, esp
mov ecx, dword [ebp - 0x1c0]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, esp
call fcn.004ad900
xor eax, eax
jmp 0x493ae7
mov esi, esp
mov edx, dword [ebp - 0x1c0]
push edx
call fcn.00447060
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, esp
call fcn.004ad900
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4936d6
xor eax, eax
jmp 0x493ae7
mov eax, dword [ebp - 0x18]
push eax
call fcn.004acec0
add esp, 4
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
push edx
mov esi, esp
mov eax, dword [ebp - 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp esi, esp
call fcn.004ad900
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004b1320
add esp, 0xc
mov esi, esp
mov edx, dword [ebp - 0x1c0]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, esp
call fcn.004ad900
mov dword [ebp - 0x1c8], 0
push 4
lea eax, [ebp - 0x1e8]
push eax
lea ecx, [ebp - 0x1dc]
push ecx
lea edx, [ebp - 0x1d0]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0049b790
add esp, 0x18
mov dword [ebp - 0x1c8], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x270], edx
mov eax, dword [ebp - 0x270]
push eax
call fcn.004b2b90
add esp, 4
cmp dword [ebp - 0x1c8], 0
jne 0x49378d
xor eax, eax
jmp 0x493ae7
push 0x2c
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004b1690
add esp, 0xc
mov dword [ebp - 0x21c], 0x28
mov edx, dword [ebp - 0x1d0]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x1dc]
neg eax
mov dword [ebp - 0x214], eax
mov ecx, 1
mov word [ebp - 0x210], cx
mov edx, 0x20
mov word [ebp - 0x20e], dx
mov dword [ebp - 0x20c], 0
mov eax, dword [ebp - 0x1d0]
imul eax, dword [ebp - 0x1dc]
shl eax, 2
mov dword [ebp - 0x208], eax
mov byte [ebp - 0x221], 0
mov dword [ebp - 0x22c], 0
mov esi, esp
push 0
push 0
lea ecx, [ebp - 0x22c]
push ecx
push 0
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp esi, esp
call fcn.004ad900
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x493848
xor eax, eax
jmp 0x493ae7
mov dword [ebp - 0x238], 0
jmp 0x493863
mov eax, dword [ebp - 0x238]
add eax, 1
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x1d0]
imul ecx, dword [ebp - 0x1dc]
cmp dword [ebp - 0x238], ecx
jge 0x493a3b
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x238]
mov esi, dword [ebp - 0x1c8]
mov cl, byte [esi + ecx*4 + 3]
mov byte [eax + edx*4 + 3], cl
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x22c]
movzx ecx, byte [eax + edx*4 + 3]
cmp ecx, 0xff
jge 0x49397a
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x1c8]
movzx eax, byte [eax + edx*4 + 2]
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x1c8]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x22c]
mov byte [ecx + edx*4], al
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x1c8]
movzx eax, byte [eax + edx*4 + 1]
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x1c8]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x22c]
mov byte [ecx + edx*4 + 1], al
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x1c8]
movzx eax, byte [eax + edx*4]
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x1c8]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x22c]
mov byte [ecx + edx*4 + 2], al
mov byte [ebp - 0x221], 1
jmp 0x4939d8
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x238]
mov esi, dword [ebp - 0x1c8]
mov cl, byte [esi + ecx*4 + 2]
mov byte [eax + edx*4], cl
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x238]
mov esi, dword [ebp - 0x1c8]
mov cl, byte [esi + ecx*4 + 1]
mov byte [eax + edx*4 + 1], cl
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x238]
mov esi, dword [ebp - 0x1c8]
mov cl, byte [esi + ecx*4]
mov byte [eax + edx*4 + 2], cl
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [ebp + 0x10]
jne 0x493a36
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x22c]
mov byte [eax + edx*4], 0
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x22c]
mov byte [edx + ecx*4 + 1], 0
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x22c]
mov byte [ecx + eax*4 + 2], 0
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x22c]
mov byte [eax + edx*4 + 3], 0
mov byte [ebp - 0x221], 1
jmp 0x493854
mov ecx, dword [ebp - 0x1c8]
push ecx
call fcn.0049b770
add esp, 4
push 0x58
call fcn.004adb10
add esp, 4
mov dword [ebp - 0x278], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x278], 0
je 0x493a7d
mov ecx, dword [ebp - 0x278]
call fcn.0044ef90
mov dword [ebp - 0x27c], eax
jmp 0x493a87
mov dword [ebp - 0x27c], 0
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x274], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x234]
mov dword [ecx], edx
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x1d0]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x1dc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x23c]
mov dl, byte [ebp - 0x221]
mov byte [ecx + 0xc], dl
mov eax, dword [ebp - 0x23c]
push edx
mov ecx, ebp
push eax
lea edx, [0x493b20]
call fcn.004ad930
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad8f0
add esp, 0x27c
cmp ebp, esp
call fcn.004ad900
mov esp, ebp
pop ebp
ret