Function at 0x40e2a0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52dcbc
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x588e70]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x344], ecx
mov dword [ebp - 0x33c], eax
call fcn.0041767f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e2f7
push 0x80004005
call fcn.004025a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x338], edi
push 0xa
push 0x69
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40e34c
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e345
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40e65b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebp - 0x114]
push ecx
mov ebx, eax
push 0x104
mov dword [ebp - 0x340], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call fcn.004164a6
mov ecx, 1
add esp, 4
mov edi, eax
cmp esi, ecx
jle 0x40e3be
mov edx, edi
lea eax, [ebx + 1]
sub edx, ebx
mov edi, edi
movzx ebx, byte [eax - 1]
mov byte [edx + eax], bl
movzx ebx, byte [eax]
mov byte [edi + ecx - 1], bl
add ecx, 2
add eax, 2
cmp ecx, esi
jl 0x40e3a0
mov ebx, dword [ebp - 0x340]
mov edx, esi
and edx, 0x80000001
jns 0x40e3cd
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, 1
jne 0x40e3da
mov al, byte [ebx + esi - 1]
mov byte [edi + esi - 1], al
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e3e3
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x338]
call fcn.00402a20
push 0xc
push str.HDLSBIN.ZIP
lea ecx, [ebp - 0x338]
call fcn.0040ad00
mov ebx, dword [ebp - 0x338]
push 0x1001
push ebx
lea ecx, [ebp - 0x358]
call fcn.004285ca
push esi
push edi
lea ecx, [ebp - 0x358]
mov byte [ebp - 4], 1
call fcn.00427b81
lea ecx, [ebp - 0x358]
call fcn.00427de5
push 0
lea ecx, [ebp - 0x334]
call fcn.00412210
push ebx
lea ecx, [ebp - 0x334]
mov byte [ebp - 4], 2
call fcn.004122b0
test eax, eax
jne 0x40e4fb
mov edi, dword [ebp - 0x344]
push 0x25
push ecx
mov ecx, esp
mov dword [ebp - 0x33c], esp
push str.Error_on_opening_zipped_F_W___
mov byte [edi + 0xfb4], 1
call fcn.00402bb0
lea ecx, [edi + 0xbc8]
call fcn.00403dd0
test byte [edi + 0x1ea8], 1
jne 0x40e4b3
mov edx, dword [edi + 0xbc8]
mov eax, dword [edx + 0x170]
lea ecx, [edi + 0xbc8]
call eax
lea ecx, [ebp - 0x334]
mov byte [ebp - 4], 1
call fcn.00412280
lea ecx, [ebp - 0x358]
mov byte [ebp - 4], 0
call fcn.00427fb8
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4f4
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
xor eax, eax
jmp 0x40e65b
push 0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x334]
call fcn.00412830
test eax, eax
jne 0x40e569
mov edi, dword [ebp - 0x344]
push 0x25
push ecx
mov ecx, esp
mov dword [ebp - 0x33c], esp
push str.Error_on_extracting_zipped_F_W___
mov byte [edi + 0xfb4], 1
call fcn.00402bb0
lea ecx, [edi + 0xbc8]
call fcn.00403dd0
test byte [edi + 0x1ea8], 1
jne 0x40e55d
mov edx, dword [edi + 0xbc8]
mov eax, dword [edx + 0x170]
lea ecx, [edi + 0xbc8]
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40e4b3
lea ecx, [ebp - 0x334]
call fcn.00411f30
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x334]
call fcn.004128d0
push eax
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 3
call fcn.00404ec0
mov eax, dword [ebp - 0x340]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e5bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x338]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 1
push 0x200000
mov edi, eax
call fcn.00514e17
mov ecx, dword [ebp - 0x33c]
add esp, 8
push 0
lea edx, [ebp - 0x35c]
push edx
push 0x200000
push eax
push edi
mov dword [ecx + 0x15c0], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x334]
mov byte [ebp - 4], 1
call fcn.00412280
lea ecx, [ebp - 0x358]
mov byte [ebp - 4], 0
call fcn.00427fb8
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e656
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, 1
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.005144d7
mov esp, ebp
pop ebp
ret 4