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

Disassembly:
push 0x41c
mov eax, 0x5bcc3e
call fcn.005718de
mov dword [ebp - 0x424], edx
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test ecx, ecx
jne 0x4db2da
mov edi, 0x84
lea eax, [ebp - 0xd0]
push edi
push ebx
push eax
call fcn.00589540
add esp, 0xc
lea ecx, [ebp - 0xd0]
push 0x632140
call fcn.004bb669
mov dword [ebp - 4], ebx
mov eax, dword [0x6321c8]
cmp word [eax], bx
jne 0x4db170
cmp dword [ebp + 8], ebx
je 0x4db0f5
push dword [ebp + 8]
lea ecx, [ebp - 0xd0]
call fcn.004bb68e
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4db12c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.00403943
jmp 0x4db351
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4db118
and dword [ebp - 0x14], 0
push esi
call fcn.005708f2
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
je 0x4db2c9
push edi
call fcn.005708e4
pop ecx
jmp 0x4db118
push eax
lea ecx, [ebp - 0xd0]
call fcn.004bb68e
push edi
lea eax, [ebp - 0x1e0]
push ebx
push eax
call fcn.00589540
add esp, 0xc
lea ecx, [ebp - 0x1e0]
push 0x632250
call fcn.004bb669
mov byte [ebp - 4], 1
cmp byte [0x630b39], 0
je 0x4db1b2
mov ebx, dword [0x63a01c]
jmp 0x4db1de
mov ecx, dword [ebp - 0x1e0]
call fcn.004c2684
mov ecx, dword [ebp - 0xd0]
mov esi, eax
push esi
push 2
xor edx, edx
call fcn.004c7ecc
mov ebx, eax
pop ecx
pop ecx
test esi, esi
je 0x4db1de
push esi
call fcn.005708e4
pop ecx
test ebx, ebx
jne 0x4db1f2
lea ecx, [ebp - 0x1e0]
call fcn.00403943
jmp 0x4db118
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x158]
push edi
push 0
push eax
call fcn.00589540
add esp, 0xc
lea ecx, [ebp - 0x158]
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004bb645
push 0x5fa6d8
push 0x5f5a10
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 2
call fcn.004bba41
mov edx, dword [ebp - 0x158]
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.004c7fc2
add esp, 0xc
test eax, eax
je 0x4db25e
lea ecx, [ebp - 0x158]
call fcn.00403943
jmp 0x4db1e2
mov esi, dword [ebp - 0x1e4]
test esi, esi
je 0x4db251
push esi
call fcn.005708f2
mov edx, dword [ebp - 0x14]
mov edi, eax
push esi
push edi
mov ecx, ebx
call fcn.004c7ff5
add esp, 0xc
test eax, eax
je 0x4db2a3
cmp eax, 0x600
je 0x4db2a3
push edi
call fcn.005708e4
cmp byte [0x630b39], 0
pop ecx
jne 0x4db251
mov ecx, ebx
call fcn.004c8026
jmp 0x4db251
cmp byte [0x630b39], 0
jne 0x4db2b3
mov ecx, ebx
call fcn.004c8026
lea ecx, [ebp - 0x158]
call fcn.00403943
lea ecx, [ebp - 0x1e0]
call fcn.00403943
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.00403943
jmp 0x4db34d
test esi, esi
jne 0x4db2ed
mov esi, dword [0x63a024]
test esi, esi
cmove esi, dword [0x63a018]
push ecx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4db351
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
push ebx
test eax, eax
jne 0x4db319
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4db351
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4db351
push esi
call fcn.005708f2
pop ecx
push esi
push dword [ebp - 0x41c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.00588a40
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
jne 0x4db3c3
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4db5c3
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4db5c3
and dword [ebp - 0x18], 0
push esi
call fcn.005708f2
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
je 0x4db3bb
push edi
call fcn.005708e4
pop ecx
xor edi, edi
test edi, edi
je 0x4db5c3
push ecx
lea eax, [ebp - 0x428]
mov edx, esi
push eax
lea eax, [ebp - 0x41c]
mov ecx, edi
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004d0f7d
push edi
mov ebx, eax
call fcn.005708e4
add esp, 0x14
test ebx, ebx
je 0x4db5c3
push 0x2c
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00589540
mov eax, dword [ebp - 0x41c]
add esp, 0xc
mov ecx, dword [ebp - 0x420]
neg eax
and dword [ebp - 0x34], 0
mov edi, ecx
imul edi, dword [ebp - 0x41c]
mov dword [ebp - 0x3c], eax
xor eax, eax
inc eax
mov dword [ebp - 0x40], ecx
push 0x20
mov word [ebp - 0x38], ax
xor ecx, ecx
pop eax
mov word [ebp - 0x36], ax
mov eax, edi
push ecx
shl eax, 2
push ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x414]
push eax
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x28
push eax
push ecx
mov byte [ebp - 0x415], cl
mov dword [ebp - 0x414], ecx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x4db5c3
xor esi, esi
test edi, edi
jle 0x4db575
mov edx, 0xff
mov eax, dword [ebp - 0x414]
mov cl, byte [ebx + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
mov ecx, dword [ebp - 0x414]
cmp byte [ecx + esi*4 + 3], dl
jae 0x4db506
movzx ecx, byte [ebx + esi*4 + 3]
xor edx, edx
movzx eax, byte [ebx + esi*4 + 2]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x414]
xor edx, edx
mov byte [ecx + esi*4], al
movzx ecx, byte [ebx + esi*4 + 3]
movzx eax, byte [ebx + esi*4 + 1]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x414]
xor edx, edx
mov byte [ecx + esi*4 + 1], al
movzx ecx, byte [ebx + esi*4 + 3]
movzx eax, byte [ebx + esi*4]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x414]
xor edx, edx
inc edx
mov byte [ebp - 0x415], dl
mov byte [ecx + esi*4 + 2], al
jmp 0x4db52b
mov al, byte [ebx + esi*4 + 2]
xor edx, edx
mov byte [ecx + esi*4], al
inc edx
mov eax, dword [ebp - 0x414]
mov cl, byte [ebx + esi*4 + 1]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x414]
mov cl, byte [ebx + esi*4]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x424]
cmp dword [eax + esi*4], ecx
jne 0x4db567
mov byte [eax + esi*4], 0
mov eax, dword [ebp - 0x414]
mov byte [ebp - 0x415], dl
mov byte [eax + esi*4 + 1], 0
mov eax, dword [ebp - 0x414]
mov byte [eax + esi*4 + 2], 0
mov eax, dword [ebp - 0x414]
mov byte [eax + esi*4 + 3], 0
inc esi
mov edx, 0xff
cmp esi, edi
jl 0x4db483
push ebx
call fcn.0058e253
pop ecx
push 0xa0
call fcn.005708b1
pop ecx
xor edx, edx
mov dword [ebp - 0x424], eax
lea ecx, [eax + 0x1c]
mov dword [eax + 0x18], ecx
mov word [ecx], dx
mov ecx, dword [ebp - 0x428]
and dword [eax + 4], edx
and dword [eax + 8], edx
mov dword [eax], ecx
mov ecx, dword [ebp - 0x420]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x41c]
mov dword [eax + 0x10], ecx
mov cl, byte [ebp - 0x415]
mov byte [eax + 0x14], cl
jmp 0x4db5c5
xor eax, eax
call fcn.00571888
ret