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

Disassembly:
push 0xffffffffffffffff
push 0x46b90b
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x4860f0]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4860f0]
xor eax, esp
push eax
lea eax, [esp + 0x31c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x330]
test eax, eax
jne 0x42c660
call fcn.0041b0c0
mov edx, eax
lea eax, [esp + 0x5c]
call fcn.00420490
mov dword [esp + 0x324], 0
call fcn.0041b0d0
mov edx, eax
call fcn.004206b0
lea ecx, [esp + 0x5c]
test al, al
je 0x42c57f
mov eax, dword [esp + 0x32c]
call fcn.00420770
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [esp + 0x74]
call fcn.0041b310
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
or ebp, 0xffffffff
cmp edi, ebp
jne 0x42c509
lea ecx, [esp + 0x5c]
mov dword [esp + 0x324], ebp
call fcn.0040dad0
jmp 0x42c6d5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x42c52d
lea ecx, [esp + 0x5c]
mov dword [esp + 0x324], ebp
call fcn.0040dad0
jmp 0x42c6d5
push esi
mov dword [esp + 0x24], 0
call fcn.004564eb
add esp, 4
push 0
mov ebx, eax
lea eax, [esp + 0x24]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], esi
je 0x42c64a
push ebx
call fcn.00457270
add esp, 4
lea ecx, [esp + 0x5c]
mov dword [esp + 0x324], ebp
call fcn.0040dad0
jmp 0x42c6d5
mov eax, edx
call fcn.00420750
call fcn.0041b0e0
test al, al
je 0x42c596
call fcn.0041b0f0
jmp 0x42c5af
push 0
lea eax, [esp + 0x60]
call fcn.0041b310
push eax
mov ebx, 2
call fcn.00425bb0
add esp, 8
mov edi, eax
test edi, edi
jne 0x42c5ce
lea ecx, [esp + 0x5c]
mov dword [esp + 0x324], 0xffffffff
call fcn.0040dad0
jmp 0x42c6d5
mov edx, dword [esp + 0x32c]
lea ecx, [esp + 0xe4]
push ecx
push edi
lea ecx, [esp + 0x24]
call fcn.00425c20
add esp, 8
test eax, eax
jne 0x42c5b5
mov esi, dword [esp + 0x310]
test esi, esi
je 0x42c5b5
push esi
call fcn.004564eb
mov edx, dword [esp + 0x20]
mov ebx, eax
add esp, 4
push esi
mov ecx, ebx
mov eax, edi
call fcn.00425d60
add esp, 4
test eax, eax
je 0x42c63c
cmp eax, 0x600
je 0x42c63c
push ebx
call fcn.00457270
add esp, 4
call fcn.0041b0e0
test al, al
jne 0x42c5b5
call fcn.00425da0
jmp 0x42c5b5
call fcn.0041b0e0
test al, al
jne 0x42c64a
call fcn.00425da0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x324], 0xffffffff
call fcn.0040dad0
jmp 0x42c6cd
mov edx, dword [esp + 0x32c]
push eax
push edx
call fcn.0041b0b0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42c6d5
push edi
call fcn.0041b0b0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push edi
test ebp, ebp
jne 0x42c697
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x42c6d5
call fcn.0041b0b0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x42c6d5
push esi
call fcn.004564eb
add esp, 4
push esi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.0045aa90
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
jne 0x42c756
mov eax, dword [esp + 0x32c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42c74f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x42c74f
push esi
mov dword [esp + 0x30], 0
call fcn.004564eb
add esp, 4
push 0
lea ecx, [esp + 0x30]
push ecx
push esi
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x2c], esi
je 0x42c74b
push ebx
call fcn.00457270
add esp, 4
xor eax, eax
jmp 0x42c926
test ebx, ebx
jne 0x42c756
xor eax, eax
jmp 0x42c926
push esi
lea edi, [esp + 0x28]
lea edx, [esp + 0x20]
lea esi, [esp + 0x2c]
mov ecx, ebx
call fcn.0043b1e0
add esp, 4
mov esi, eax
push ebx
mov dword [esp + 0x28], esi
call fcn.00457270
add esp, 4
test esi, esi
je 0x42c74f
push 0x2c
lea edx, [esp + 0x34]
push 0
push edx
call fcn.00459a90
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
mov ecx, eax
mov ebp, edi
imul ebp, eax
neg ecx
push 0
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x20]
push eax
mov ecx, 0x20
mov word [esp + 0x4a], cx
push 0
mov edx, 1
lea ecx, [esp + 0x40]
mov word [esp + 0x4c], dx
push ecx
lea edx, [ebp*4]
push 0
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x4c], edi
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], edx
xor bl, bl
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x20], eax
test eax, eax
je 0x42c74f
xor ecx, ecx
test ebp, ebp
jle 0x42c8eb
mov eax, dword [esp + 0x18]
add esi, 3
jmp 0x42c820
mov dl, byte [esi]
mov byte [eax + ecx*4 + 3], dl
mov edi, dword [esp + 0x18]
cmp byte [edi + ecx*4 + 3], 0xff
jae 0x42c884
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 0x42c8a2
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 0x42c8d7
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
inc ecx
add esi, 4
cmp ecx, ebp
jl 0x42c820
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, esi
call fcn.0043b0e0
push 0x98
call fcn.00456a8e
mov esi, eax
add esp, 4
test esi, esi
je 0x42c911
lea ecx, [esi + 0x10]
call fcn.00420440
mov eax, esi
jmp 0x42c913
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov byte [eax + 0xc], 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.004567fb
add esp, 0x314
ret