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

Disassembly:
push 0xffffffffffffffff
push 0x4660fb
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x47a060]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a060]
xor eax, esp
push eax
lea eax, [esp + 0x31c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x330]
xor ebx, ebx
cmp eax, ebx
jne 0x427a10
mov ecx, dword [0x47b848]
lea eax, [esp + 0x60]
mov dword [esp + 0x5c], eax
or edi, 0xffffffff
push ecx
mov eax, edi
lea esi, [esp + 0x60]
mov word [esp + 0x64], bx
call fcn.0041aea0
mov dword [esp + 0x324], ebx
mov eax, dword [0x47b8d0]
cmp word [eax], bx
jne 0x4278b3
mov eax, dword [esp + 0x32c]
cmp eax, ebx
je 0x4277e6
push eax
mov ebx, esi
call fcn.0041ad60
mov edx, dword [esp + 0x5c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x42782e
mov dword [esp + 0x324], edi
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x60]
cmp eax, ecx
je 0x427a85
push eax
call fcn.0044f1f9
add esp, 4
jmp 0x427a85
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x427866
mov dword [esp + 0x324], 0xffffffff
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
je 0x427a85
push eax
call fcn.0044f1f9
add esp, 4
jmp 0x427a85
push edi
mov dword [esp + 0x24], 0
call fcn.0044ea80
add esp, 4
push 0
mov ebx, eax
lea eax, [esp + 0x24]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], edi
je 0x4279ee
push ebx
call fcn.0044eea2
add esp, 4
mov dword [esp + 0x324], 0xffffffff
jmp 0x427810
push eax
lea ebx, [esp + 0x60]
call fcn.0041ad60
cmp byte [0x47d2fc], 0
je 0x4278ce
mov ebp, dword [0x47d300]
jmp 0x4278e1
mov edx, dword [esp + 0x5c]
push 0
push 0
push edx
call fcn.004143b0
add esp, 0xc
mov ebp, eax
test ebp, ebp
je 0x427809
cmp dword [ebp], 1
je 0x4278fe
mov dword [0x47d2e8], 0x80000
jmp 0x427809
mov eax, dword [esp + 0x32c]
mov esi, dword [ebp + 4]
lea edx, [esp + 0xe4]
push edx
push eax
lea ebx, [esp + 0x24]
call fcn.00413d40
test eax, eax
mov dword [0x47d2e8], eax
jne 0x427809
mov edi, dword [esp + 0x310]
test edi, edi
jne 0x42794c
mov dword [esp + 0x324], 0xffffffff
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
jmp 0x42781a
push edi
call fcn.0044ea80
add esp, 4
cmp dword [ebp], 1
mov ebx, eax
je 0x427969
mov dword [0x47d2e8], 0x80000
jmp 0x42798b
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 4]
push 3
push edi
push eax
mov edx, ebx
call fcn.00413f20
test eax, eax
mov dword [0x47d2e8], eax
je 0x4279b4
cmp eax, 0x600
je 0x4279b4
push ebx
call fcn.0044eea2
add esp, 4
cmp byte [0x47d2fc], 0
jne 0x4279a4
mov edi, ebp
call fcn.00414840
mov dword [esp + 0x324], 0xffffffff
jmp 0x427810
cmp byte [0x47d2fc], 0
jne 0x4279ee
cmp dword [ebp], 1
je 0x4279cf
mov dword [0x47d2e8], 0x80000
jmp 0x4279ee
mov esi, dword [ebp + 4]
call fcn.00414350
test esi, esi
mov dword [0x47d2e8], eax
je 0x4279e5
call fcn.00414470
push ebp
call fcn.0044ec2b
add esp, 4
mov dword [esp + 0x324], 0xffffffff
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
je 0x427a7d
push eax
call fcn.0044f1f9
add esp, 4
jmp 0x427a7d
push eax
mov eax, dword [esp + 0x330]
push eax
call fcn.004178e0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x427a85
push esi
call fcn.004178e0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
cmp ebp, ebx
push esi
jne 0x427a47
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x427a85
call fcn.004178e0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x427a85
push edi
call fcn.0044ea80
add esp, 4
push edi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.00453d80
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
jne 0x427b06
mov ecx, dword [esp + 0x32c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x427aff
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x427aff
push edi
mov dword [esp + 0x2c], 0
call fcn.0044ea80
add esp, 4
push 0
lea edx, [esp + 0x2c]
push edx
push edi
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], edi
je 0x427afb
push ebx
call fcn.0044eea2
add esp, 4
xor eax, eax
jmp 0x427cd9
test ebx, ebx
jne 0x427b06
xor eax, eax
jmp 0x427cd9
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
lea edx, [esp + 0x38]
mov ecx, ebx
call fcn.004455f0
add esp, 0xc
mov esi, eax
push ebx
mov dword [esp + 0x20], esi
call fcn.0044eea2
add esp, 4
test esi, esi
je 0x427aff
push 0x2c
lea edx, [esp + 0x34]
push 0
push edx
call fcn.00452a60
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
add esp, 0xc
push 0
mov ebp, edi
imul ebp, esi
push 0
mov eax, esi
neg eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x44], eax
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [ebp*4]
push 0
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x4c], edi
mov word [esp + 0x54], 1
mov word [esp + 0x56], 0x20
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], ecx
xor bl, bl
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
mov dword [esp + 0x20], eax
je 0x427aff
xor ecx, ecx
test ebp, ebp
jle 0x427c9d
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esi, 3
jmp 0x427bd0
mov dl, byte [esi]
mov byte [eax + ecx*4 + 3], dl
mov edi, dword [esp + 0x18]
cmp byte [edi + ecx*4 + 3], 0xff
jae 0x427c34
movzx eax, byte [esi]
movzx edx, byte [esi - 1]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [edi + ecx*4], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 2]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x18]
shr edx, 7
mov byte [eax + ecx*4 + 1], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 3]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x18]
shr edx, 7
mov byte [eax + ecx*4 + 2], dl
mov bl, 1
jmp 0x427c52
mov dl, byte [esi - 1]
mov byte [edi + ecx*4], dl
movzx eax, byte [esi - 2]
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 1], al
movzx eax, byte [esi - 3]
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 2], al
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x334]
cmp dword [eax + ecx*4], edx
jne 0x427c87
mov byte [eax + ecx*4], 0
mov eax, dword [esp + 0x18]
mov byte [eax + ecx*4 + 1], 0
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 2], 0
mov eax, dword [esp + 0x18]
mov byte [eax + ecx*4 + 3], 0
mov eax, dword [esp + 0x18]
mov bl, 1
add ecx, 1
add esi, 4
cmp ecx, ebp
jl 0x427bd0
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044f1f9
add esp, 4
push 0x9c
call fcn.0044f07d
add esp, 4
test eax, eax
je 0x427cc8
lea ecx, [eax + 0x18]
mov dword [eax + 0x14], ecx
mov word [ecx], 0
jmp 0x427cca
xor eax, eax
mov edx, dword [esp + 0x20]
mov dword [eax], edx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov byte [eax + 0x10], bl
mov ecx, dword [esp + 0x31c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.0044eeec
add esp, 0x314
ret