Function at 0x40fcb0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ddfc
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
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 esi, ecx
call fcn.0041767f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40fcfa
push 0x80004005
call fcn.004025a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x338], ebx
push 0xa
push 0x67
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40fd4f
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x410148
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebp - 0x114]
push ecx
mov ebx, eax
push 0x104
mov dword [ebp - 0x33c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
call fcn.004164a6
mov ecx, 1
add esp, 4
mov edx, eax
mov dword [ebp - 0x344], edx
cmp edi, ecx
jle 0x40fdde
sub edx, ebx
lea eax, [ebx + 1]
mov dword [ebp - 0x340], edx
jmp 0x40fdb6
mov edx, dword [ebp - 0x340]
mov bl, byte [eax - 1]
mov byte [edx + eax], bl
mov dl, byte [eax]
mov ebx, dword [ebp - 0x344]
mov byte [ebx + ecx - 1], dl
add ecx, 2
add eax, 2
cmp ecx, edi
jl 0x40fdb0
mov ebx, dword [ebp - 0x33c]
mov edx, dword [ebp - 0x344]
mov eax, edi
and eax, 0x80000001
jns 0x40fdec
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x40fdf9
mov cl, byte [ebx + edi - 1]
mov byte [edx + edi - 1], cl
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fe02
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
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
mov eax, dword [ebp - 0x344]
push edi
push eax
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 0x40ff1a
push 0x25
push ecx
mov ecx, esp
mov dword [ebp - 0x33c], esp
push str.Error_on_opening_zipped_F_W___
mov byte [esi + 0xfb4], 1
call fcn.00402bb0
lea ecx, [esi + 0xbc8]
call fcn.00403dd0
test byte [esi + 0x1ea8], 1
jne 0x40fed2
mov edx, dword [esi + 0xbc8]
mov eax, dword [edx + 0x170]
lea ecx, [esi + 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 0x40ff13
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
xor eax, eax
jmp 0x410148
push 0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x334]
call fcn.00412830
test eax, eax
jne 0x40ff82
push 0x25
push ecx
mov ecx, esp
mov dword [ebp - 0x33c], esp
push str.Error_on_extracting_zipped_F_W___
mov byte [esi + 0xfb4], 1
call fcn.00402bb0
lea ecx, [esi + 0xbc8]
call fcn.00403dd0
test byte [esi + 0x1ea8], 1
jne 0x40ff76
mov edx, dword [esi + 0xbc8]
mov eax, dword [edx + 0x170]
lea ecx, [esi + 0xbc8]
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40fed2
lea ecx, [ebp - 0x334]
call fcn.00411f30
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x33c]
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 - 0x33c]
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 0x40ffdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x338]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esi + 0x43c]
push 0
mov edi, eax
call fcn.004188cc
lea ecx, [esi + 0x3a4]
push 0
call fcn.004188cc
cmp dword [esi + 0x1ee8], 0
je 0x410028
push edi
mov ecx, esi
call fcn.0040ab50
push ecx
mov dword [ebp - 0x340], esp
add ebx, 0xfffffff0
mov dword [ebp - 0x340], esp
push ebx
call fcn.00403d60
mov ecx, dword [ebp - 0x340]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
push edi
mov ecx, esi
call fcn.0040eed0
push 1
lea ecx, [esi + 0x43c]
call fcn.004188cc
push 1
lea ecx, [esi + 0x3a4]
call fcn.004188cc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x1f04], 0
mov dword [esi + 0x1f08], 0
je 0x4100f8
push ecx
mov dword [ebp - 0x340], esp
mov edi, esp
push ebx
call fcn.00403d60
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.0040d000
test eax, eax
jne 0x4100ee
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x334]
mov dword [esi + 0x1f08], 0
mov byte [ebp - 4], 1
call fcn.00412280
lea ecx, [ebp - 0x358]
mov byte [ebp - 4], 0
call fcn.00427fb8
lea ecx, [ebp - 0x338]
call fcn.00402900
xor eax, eax
jmp 0x410148
mov dword [esi + 0x1f08], 1
mov eax, dword [ebp - 0x338]
push eax
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
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410143
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
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