Function at 0x4027b0
Capabilities:
Extract resource via kernel32 functions
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e733
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4294c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x4c], ebx
push 0xa
movzx eax, bx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x402888
mov edx, ebx
lea ecx, [ebp - 0x64]
call fcn.00401ce0
push eax
mov edx, 0x425964
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
call fcn.00408710
push 0x425960
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004087a0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x402836
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x34], 0x10
jb 0x40284e
push dword [ebp - 0x48]
call fcn.0040a00c
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], 0x10
jb 0x402871
push dword [ebp - 0x2c]
call fcn.0040a00c
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jmp 0x402a37
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
mov ebx, eax
push 0
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test ebx, ebx
je 0x4029ac
test edi, edi
je 0x4029ac
cmp dword [esi + 0x14], 0x10
jb 0x4028bb
mov eax, dword [esi]
jmp 0x4028bd
mov eax, esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402918
push esi
mov edx, 0x425990
lea ecx, [ebp - 0x64]
call fcn.00408840
push 0x425960
mov edx, eax
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004087a0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x40290c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x402860
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402940
cmp dword [ebp - 0x14], edi
jne 0x402940
mov edi, 1
jmp 0x402942
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
jne 0x4029a4
push esi
mov edx, 0x4259a0
lea ecx, [ebp - 0x94]
call fcn.00408840
push 0x425960
mov edx, eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x7c]
call fcn.004087a0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x402988
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x7c]
call fcn.00406af0
lea ecx, [ebp - 0x94]
call fcn.00406af0
test edi, edi
setne al
jmp 0x402a4a
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.00401ce0
push eax
mov edx, 0x425984
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00408710
push 0x425974
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004087a0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x4029ea
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x18], 0x10
jb 0x402a02
push dword [ebp - 0x2c]
call fcn.0040a00c
add esp, 4
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x402a25
push dword [ebp - 0x48]
call fcn.0040a00c
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x50], 0x10
jb 0x402a48
push dword [ebp - 0x64]
call fcn.0040a00c
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a011
mov esp, ebp
pop ebp
ret