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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48afa0
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x4b0070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x318], edx
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test ecx, ecx
jne 0x427ec9
call fcn.0041d380
push eax
lea ecx, [ebp - 0xcc]
call fcn.004227c0
mov dword [ebp - 4], 0
call fcn.0041d390
mov ecx, eax
call fcn.00422970
test al, al
je 0x427da6
push dword [ebp + 8]
lea ecx, [ebp - 0xcc]
call fcn.00422a40
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xcc]
call fcn.0041d5b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x427d2a
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], eax
call fcn.00409b60
jmp 0x427f48
push 0
push ebx
call esi
mov esi, eax
test esi, esi
jne 0x427d4c
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.00409b60
jmp 0x427f42
push esi
mov dword [ebp - 0x308], 0
call fcn.00467dc4
add esp, 4
mov edi, eax
lea eax, [ebp - 0x308]
push 0
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 - 0x308], esi
je 0x427eb5
push edi
call fcn.00467dcd
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.00409b60
jmp 0x427f42
push ecx
lea ecx, [ebp - 0xcc]
call fcn.00422a20
call fcn.0041d3a0
test al, al
je 0x427dc2
call fcn.0041d3b0
jmp 0x427ddb
push 2
lea ecx, [ebp - 0xcc]
call fcn.0041d5b0
xor edx, edx
mov ecx, eax
call fcn.00433950
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x427df8
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.00409b60
jmp 0x427f48
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x2fc]
push eax
lea eax, [ebp - 0x304]
push eax
push ecx
mov ecx, ebx
call fcn.004339d0
add esp, 0xc
test eax, eax
je 0x427e2f
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.00409b60
jmp 0x427f48
mov esi, dword [ebp - 0xd0]
test esi, esi
jne 0x427e50
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.00409b60
jmp 0x427f42
push esi
call fcn.00467dc4
mov edx, dword [ebp - 0x304]
mov edi, eax
push esi
push edi
mov ecx, ebx
call fcn.00433ad0
add esp, 0xc
test eax, eax
je 0x427ea5
cmp eax, 0x600
je 0x427ea5
push edi
call fcn.00467dcd
add esp, 4
call fcn.0041d3a0
test al, al
jne 0x427e8e
mov ecx, ebx
call fcn.00433b20
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.00409b60
jmp 0x427f42
call fcn.0041d3a0
test al, al
jne 0x427eb5
mov ecx, ebx
call fcn.00433b20
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.00409b60
jmp 0x427f3a
push ecx
push dword [ebp + 8]
call fcn.0041d370
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x427f48
push ebx
call fcn.0041d370
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x304], eax
push ebx
test eax, eax
jne 0x427eff
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x427f48
call fcn.0041d370
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x427f42
push esi
call fcn.00467dc4
add esp, 4
mov edi, eax
push esi
push dword [ebp - 0x304]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.004696f0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
jne 0x427fd2
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x427fb4
push 0
push ebx
call esi
mov esi, eax
test esi, esi
je 0x427fb4
push esi
mov dword [ebp - 0x314], 0
call fcn.00467dc4
add esp, 4
mov edi, eax
lea eax, [ebp - 0x314]
push 0
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 - 0x314], esi
je 0x427fd2
push edi
call fcn.00467dcd
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046780a
mov esp, ebp
pop ebp
ret
push ecx
lea eax, [ebp - 0x320]
mov edx, esi
push eax
lea eax, [ebp - 0x310]
mov ecx, edi
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.0043e260
mov ebx, eax
push edi
mov dword [ebp - 0x304], ebx
call fcn.00467dcd
add esp, 0x14
test ebx, ebx
je 0x427fb4
mov eax, dword [ebp - 0x310]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x30c]
neg eax
push 0
push 0
mov dword [ebp - 0x38], eax
xor bl, bl
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0x300]
imul edx, dword [ebp - 0x310]
push eax
push 0
lea eax, [ebp - 0x40]
movlpd qword [ebp - 0x28], xmm0
push eax
shl edx, 2
push 0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x40], 0x28
mov dword [ebp - 0x34], 0x200001
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x300], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x31c], eax
test eax, eax
je 0x427fb4
mov ecx, dword [ebp - 0x30c]
xor esi, esi
imul ecx, dword [ebp - 0x310]
test ecx, ecx
jle 0x4281a3
mov edx, dword [ebp - 0x304]
add edx, 3
mov dword [ebp - 0x308], edx
nop dword [eax]
mov eax, dword [ebp - 0x300]
mov cl, byte [edx + esi*4]
mov byte [eax + esi*4 + 3], cl
mov eax, dword [ebp - 0x300]
cmp byte [eax + esi*4 + 3], 0xff
lea edi, [eax + esi*4]
jae 0x428131
movzx eax, byte [edx + esi*4]
mov bl, 1
movzx ecx, byte [edx + esi*4 - 1]
imul ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
mov byte [edi], dl
mov edi, dword [ebp - 0x308]
movzx eax, byte [edi + esi*4]
movzx ecx, byte [edi + esi*4 - 2]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x300]
shr edx, 7
mov byte [eax + esi*4 + 1], dl
movzx eax, byte [edi + esi*4]
movzx ecx, byte [edi + esi*4 - 3]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x300]
shr edx, 7
mov byte [eax + esi*4 + 2], dl
mov edx, edi
jmp 0x428155
mov al, byte [edx + esi*4 - 1]
mov byte [edi], al
mov eax, dword [ebp - 0x300]
movzx ecx, byte [edx + esi*4 - 2]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x300]
movzx ecx, byte [edx + esi*4 - 3]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x318]
cmp dword [eax + esi*4], ecx
jne 0x42818d
mov byte [eax + esi*4], 0
mov bl, 1
mov eax, dword [ebp - 0x300]
mov byte [eax + esi*4 + 1], 0
mov eax, dword [ebp - 0x300]
mov byte [eax + esi*4 + 2], 0
mov eax, dword [ebp - 0x300]
mov byte [eax + esi*4 + 3], 0
mov eax, dword [ebp - 0x30c]
inc esi
imul eax, dword [ebp - 0x310]
cmp esi, eax
jl 0x4280b0
mov ecx, dword [ebp - 0x304]
call fcn.0043e140
push 0x9c
call fcn.00467c71
mov esi, eax
add esp, 4
mov dword [ebp - 0x318], esi
lea ecx, [esi + 0x14]
call fcn.00422760
mov eax, dword [ebp - 0x31c]
mov dword [esi], eax
mov eax, esi
mov ecx, dword [ebp - 0x30c]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x310]
mov dword [esi + 8], ecx
mov byte [esi + 0x10], bl
jmp 0x427fb6