Function at 0x4028e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x423279
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42dc70]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x44]
mov edi, dword [edx - 0xc]
mov ebx, 1
mov dword [esp + 0x38], ebx
test edi, edi
je 0x402978
lea eax, [edi - 1]
test eax, eax
jl 0x4029ca
cmp eax, edi
jg 0x4029ca
mov al, byte [eax + edx]
cmp al, 0x5c
je 0x402978
mov eax, dword [edx - 8]
mov ecx, ebx
sub ecx, dword [edx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x40295c
push esi
lea ecx, [esp + 0x48]
call fcn.004013b0
mov edx, dword [esp + 0x44]
mov byte [edi + edx], 0x5c
test esi, esi
jl 0x4029ca
mov eax, dword [esp + 0x44]
cmp esi, dword [eax - 8]
jg 0x4029ca
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x44]
mov byte [esi + eax], 0
call fcn.0040cd8d
mov eax, dword [eax + 0xc]
push str.IDR_EXE
push 0x81
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call fcn.0040cd8d
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
call fcn.0040a3e8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4029d4
push 0x80004005
call fcn.004011b0
push 0x80070057
call fcn.004011b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebp, dword [esp + 0x40]
add eax, 0x10
mov dword [ebp], eax
mov edi, dword [esi]
add esi, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], edi
test edi, edi
jbe 0x402aff
mov dword [esp + 0x14], edi
push esi
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00401fa0
add esp, 0xc
push eax
mov ecx, ebp
mov byte [esp + 0x3c], 2
call fcn.00401f20
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x24]
call fcn.004022b0
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402a77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp]
push 0x424d2c
push eax
call fcn.0041181f
mov edi, eax
add esp, 8
test edi, edi
jne 0x402ad4
push ebp
lea ecx, [esp + 0x28]
push str.Cannot_create_file
push ecx
call fcn.00402080
add esp, 0xc
mov eax, dword [eax]
push edi
push edi
push eax
mov byte [esp + 0x44], 3
call fcn.0040a8c2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x38], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402ad4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
push edi
push ecx
lea edx, [esi + 4]
push ebx
push edx
call fcn.004116d9
push edi
call fcn.004114fb
mov eax, dword [esi]
add esp, 0x14
sub dword [esp + 0x14], ebx
lea esi, [esi + eax + 4]
jne 0x402a00
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
call fcn.0040a3e8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402b24
push 0x80004005
call fcn.004011b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push edi
lea ecx, [esp + 0x18]
push str._d_Files_successfully_extracted.
push ecx
mov byte [esp + 0x44], 4
call fcn.004014e0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x38], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402b70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8