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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4903c1
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
mov eax, dword [0x4b39fc]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
test ecx, ecx
jne 0x430041
mov edx, dword [0x4b52c0]
or edi, 0xffffffff
push edi
lea eax, [esp + 0x64]
push edx
lea esi, [esp + 0x64]
mov dword [esp + 0x64], eax
mov word [esp + 0x68], cx
call fcn.004020a0
mov dword [esp + 0x438], 0
mov eax, dword [0x4b5348]
cmp word [eax], 0
jne 0x42fd7c
mov eax, dword [ebp + 8]
test eax, eax
je 0x42fcb6
push eax
mov eax, esi
push eax
call fcn.00401f60
mov ecx, dword [esp + 0x5c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, edi
jne 0x42fcfe
mov dword [esp + 0x438], edi
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
je 0x4300b0
push eax
call fcn.00479054
add esp, 4
jmp 0x4300b0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x42fd32
mov dword [esp + 0x438], edi
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x60]
cmp eax, ecx
je 0x4300b0
push eax
call fcn.00479054
add esp, 4
jmp 0x4300b0
push esi
mov dword [esp + 0x20], 0
call fcn.00476c60
add esp, 4
push 0
lea edx, [esp + 0x20]
push edx
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], esi
je 0x43001f
push edi
call fcn.00478198
add esp, 4
mov dword [esp + 0x438], 0xffffffff
jmp 0x42fd14
push eax
lea edx, [esp + 0x60]
push edx
call fcn.00401f60
mov edx, dword [0x4b53d0]
push edi
lea eax, [esp + 0xec]
xor ecx, ecx
push edx
lea esi, [esp + 0xec]
mov dword [esp + 0xec], eax
mov word [esp + 0xf0], cx
call fcn.004020a0
mov ebx, dword [0x4fa9c4]
test ebx, ebx
jne 0x42fdee
mov eax, dword [esp + 0xe4]
lea ecx, [esp + 0xe8]
cmp eax, ecx
je 0x42fdd8
push eax
call fcn.00479054
add esp, 4
mov dword [esp + 0x438], edi
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
jmp 0x42fd1e
mov edx, dword [ebp + 8]
push edi
lea eax, [esp + 0x174]
xor ecx, ecx
push edx
lea esi, [esp + 0x174]
mov dword [esp + 0x24], 0
mov dword [esp + 0x174], eax
mov word [esp + 0x178], cx
call fcn.004020a0
push 0x49a104
mov eax, esi
push eax
mov ecx, 0x49a100
mov byte [esp + 0x440], 2
call fcn.00402550
cmp dword [0x4fa9b0], 0
jne 0x42fe73
push 0x18
call fcn.004776e1
add esp, 4
test eax, eax
je 0x42fe65
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
jmp 0x42fe67
xor eax, eax
push eax
mov dword [0x4fa9b0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [0x4fa9b0]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx], 1
mov byte [0x4fa9b4], 1
jne 0x42febb
mov ecx, dword [esp + 0x16c]
mov esi, dword [ebx + 4]
lea edx, [esp + 0x1f4]
push edx
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.0041f240
mov dword [0x4fa9f4], eax
test eax, eax
je 0x42fef6
cmp byte [0x4fa9b4], 0
je 0x42fed2
mov eax, dword [0x4fa9b0]
test eax, eax
je 0x42fed2
push eax
mov byte [0x4fa9b4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x16c]
lea edx, [esp + 0x170]
cmp eax, edx
je 0x42fdbd
push eax
call fcn.00479054
add esp, 4
jmp 0x42fdbd
mov esi, dword [esp + 0x420]
test esi, esi
jne 0x42ff40
mov eax, dword [esp + 0x16c]
lea ecx, [esp + 0x170]
cmp eax, ecx
je 0x42ff1c
push eax
call fcn.00479054
add esp, 4
mov eax, dword [esp + 0xe4]
lea edx, [esp + 0xe8]
cmp eax, edx
je 0x42fd0d
push eax
call fcn.00479054
add esp, 4
jmp 0x42fd0d
push esi
call fcn.00476c60
add esp, 4
cmp dword [ebx], 1
mov edi, eax
je 0x42ff57
mov eax, 0x80000
jmp 0x42ff67
mov edx, dword [esp + 0x1c]
mov ebx, dword [ebx + 4]
push esi
push edi
push edx
push ebx
call fcn.0041f320
cmp byte [0x4fa9b4], 0
mov dword [0x4fa9f4], eax
mov ebx, eax
je 0x42ff8e
mov eax, dword [0x4fa9b0]
test eax, eax
je 0x42ff8e
push eax
mov byte [0x4fa9b4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x42ffe9
cmp ebx, 0x600
je 0x42ffe9
push edi
call fcn.00478198
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0x174]
add esp, 4
cmp eax, ecx
je 0x42ffbe
push eax
call fcn.00479054
add esp, 4
mov eax, dword [esp + 0xe4]
lea edx, [esp + 0xe8]
cmp eax, edx
je 0x42ffd9
push eax
call fcn.00479054
add esp, 4
mov dword [esp + 0x438], 0xffffffff
jmp 0x42fd14
mov eax, dword [esp + 0x16c]
lea edx, [esp + 0x170]
cmp eax, edx
je 0x430004
push eax
call fcn.00479054
add esp, 4
mov eax, dword [esp + 0xe4]
lea ecx, [esp + 0xe8]
cmp eax, ecx
je 0x43001f
push eax
call fcn.00479054
add esp, 4
mov dword [esp + 0x438], 0xffffffff
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
je 0x4300ac
push eax
call fcn.00479054
add esp, 4
jmp 0x4300ac
test eax, eax
jne 0x43004a
call fcn.004046d0
mov esi, eax
mov eax, dword [ebp + 8]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4300b0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x20], eax
push ebx
test eax, eax
jne 0x430077
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4300b0
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4300b0
push esi
call fcn.00476c60
mov ecx, dword [esp + 0x24]
add esp, 4
push esi
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.004779c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
jne 0x43012d
mov edx, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x430126
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x430126
push esi
mov dword [esp + 0x30], 0
call fcn.00476c60
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0x30]
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 [esp + 0x2c], esi
je 0x430122
push edi
call fcn.00478198
add esp, 4
xor eax, eax
jmp 0x430309
test edi, edi
jne 0x43012d
xor eax, eax
jmp 0x430309
lea ecx, [esp + 0x20]
push ecx
push esi
lea esi, [esp + 0x2c]
lea edx, [esp + 0x30]
mov ecx, edi
call fcn.00423330
mov esi, eax
push edi
mov dword [esp + 0x2c], esi
call fcn.00478198
add esp, 0xc
test esi, esi
je 0x430126
push 0x2c
lea edx, [esp + 0x34]
push 0
push edx
call fcn.00477820
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
add esp, 0xc
push 0
mov ebx, edi
mov ecx, 1
imul ebx, esi
push 0
mov word [esp + 0x44], cx
lea ecx, [esp + 0x20]
push ecx
mov edx, 0x20
mov eax, esi
neg eax
mov word [esp + 0x4a], dx
push 0
lea edx, [esp + 0x40]
mov dword [esp + 0x48], eax
push edx
lea eax, [ebx*4]
push 0
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x4c], edi
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], eax
mov byte [esp + 0x2f], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x430126
xor ecx, ecx
test ebx, ebx
jle 0x4302c1
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add esi, 3
mov dl, byte [esi]
mov byte [eax + ecx*4 + 3], dl
mov edi, dword [esp + 0x18]
cmp byte [edi + ecx*4 + 3], 0xff
jae 0x43025b
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 byte [esp + 0x17], 1
jmp 0x430279
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 [ebp + 0xc]
cmp dword [eax + ecx*4], edx
jne 0x4302ad
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 byte [esp + 0x17], 1
inc ecx
add esi, 4
cmp ecx, ebx
jl 0x4301f4
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00479054
add esp, 4
push 0xa0
call fcn.004776e1
xor edx, edx
add esp, 4
cmp eax, edx
je 0x4302ee
lea ecx, [eax + 0x1c]
xor ebx, ebx
mov dword [eax + 0x18], ecx
mov word [ecx], bx
jmp 0x4302f0
xor eax, eax
mov cl, byte [esp + 0x17]
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
mov byte [eax + 0x14], cl
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.004771de
mov esp, ebp
pop ebp
ret