Function at 0x4023b0
Capabilities:
Check if file exists
Create directory
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418a2e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x6f0
mov eax, dword [0x423008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6b8], esi
push 0xd
push 0x41ebb0
push str.__s__d___StartUnpack
mov dword [ebp - 0x6bc], 0
call fcn.004022a0
add esp, 0xc
lea eax, [ebp - 0x670]
push 0x208
push 0
push eax
call fcn.00409800
add esp, 0xc
lea eax, [ebp - 0x670]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x6a4], 0
lea ecx, [ebp - 0x670]
mov dword [ebp - 0x6a0], 7
mov word [ebp - 0x6b4], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402465
sub ecx, edx
lea eax, [ebp - 0x670]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6b4]
call fcn.00401b80
push str.360hb_tmp_
lea ecx, [ebp - 0x6b4]
mov dword [ebp - 4], 0
call fcn.00401630
xor ecx, ecx
add esi, 0x18
movups xmm0, xmmword [eax]
lea edi, [ecx + 3]
movups xmmword [ebp - 0x6e8], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x6e8]
push eax
mov ecx, esi
movq qword [ebp - 0x6d8], xmm0
call fcn.004033a0
mov edx, dword [ebp - 0x6d4]
cmp edx, 8
jb 0x40251c
mov ecx, dword [ebp - 0x6e8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402512
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bc6
push edx
push ecx
call fcn.00407e2f
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x6a0]
cmp edx, 8
jb 0x402563
mov ecx, dword [ebp - 0x6b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402559
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bcb
push edx
push ecx
call fcn.00407e2f
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40256d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40258d
sub esp, 0x18
mov ecx, esp
push esi
call fcn.004021b0
mov cl, 1
call fcn.00401e20
add esp, 0x18
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x402597
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x6a4], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x6a0], 7
mov word [ebp - 0x6b4], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4025e0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6b4]
call fcn.00401b80
mov esi, dword [ebp - 0x6b8]
lea ecx, [ebp - 0x6b4]
add esi, 0x30
mov dword [ebp - 4], 1
mov edx, esi
mov dword [ebp - 0x6c8], esi
call fcn.00401cd0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x6a0]
cmp edx, 8
jb 0x40266c
mov ecx, dword [ebp - 0x6b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402662
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bd0
push edx
push ecx
call fcn.00407e2f
add esp, 8
push 0x41ebac
mov ecx, esi
call fcn.00401630
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41ec2c
push 0x84
push eax
mov dword [ebp - 0x69c], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4026bb
push esi
push dword [ebp - 0x69c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x6bc], eax
push esi
test eax, eax
jne 0x4026c2
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
jmp 0x402b2e
push dword [ebp - 0x69c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4026bb
push dword [ebp - 0x6bc]
call dword [sym.imp.KERNEL32.dll_LockResource]
sub esp, 8
mov edx, esi
mov ecx, eax
call fcn.004078a0
mov esi, eax
or edx, 0xffffffff
lea eax, [ebp - 0x698]
mov dword [ebp - 0x6cc], esi
push eax
mov ecx, esi
call fcn.00407a70
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x69c], eax
cmp dword [ebp - 0x698], eax
jle 0x402b25
nop dword [eax]
xor ecx, ecx
mov dword [ebp - 0x6c4], edi
mov dword [ebp - 0x468], 0
mov word [ebp - 0x464], cx
mov dword [ebp - 0x23c], ecx
test esi, esi
jne 0x40274f
mov dword [0x424414], 0x10000
jmp 0x402775
cmp dword [esi], 1
je 0x402760
mov dword [0x424414], 0x80000
jmp 0x402775
lea ecx, [ebp - 0x468]
push ecx
mov ecx, dword [esi + 4]
push eax
call fcn.00406d30
mov dword [0x424414], eax
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x464]
mov dword [ebp - 4], 2
push 0x41ec3c
push eax
call fcn.00408ff9
add esp, 8
test eax, eax
jne 0x40290e
lea eax, [ebp - 0x464]
push 0x41ec58
push eax
call fcn.00408ff9
add esp, 8
test eax, eax
jne 0x40290e
mov edx, dword [ebp - 0x6b8]
lea ecx, [ebp - 0x6e8]
push dword [ebp - 0x6c8]
lea edx, [edx + 0x18]
call fcn.00403440
add esp, 4
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00401630
xor ecx, ecx
or edi, 8
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x700], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x700]
push eax
lea ecx, [ebp - 0x238]
movq qword [ebp - 0x6f0], xmm0
call fcn.004033a0
mov edx, dword [ebp - 0x6ec]
cmp edx, 8
jb 0x40287f
mov ecx, dword [ebp - 0x700]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402875
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bc6
push edx
push ecx
call fcn.00407e2f
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x6d4]
cmp edx, 8
jb 0x4028c3
mov ecx, dword [ebp - 0x6e8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4028b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bc6
push edx
push ecx
call fcn.00407e2f
add esp, 8
xor eax, eax
mov dword [ebp - 0x6d8], 0
cmp dword [ebp - 0x224], 8
mov word [ebp - 0x6e8], ax
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
push 0x3b
push 0x41ebb0
push str.__s__d___strFileNamePath:_s
mov dword [ebp - 0x6d4], 7
call fcn.004022a0
add esp, 0x10
jmp 0x402a81
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x464]
xor eax, eax
mov dword [ebp - 0x6a4], 0
or edi, 4
mov word [ebp - 0x6b4], ax
mov dword [ebp - 0x6bc], edi
lea eax, [ecx + 2]
mov edi, dword [ebp - 0x6b8]
mov dword [ebp - 0x6a0], 7
mov dword [ebp - 0x6c0], eax
mov edx, dword [edi + 0x28]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402950
sub ecx, dword [ebp - 0x6c0]
sar ecx, 1
lea eax, [ecx + edx]
push eax
lea ecx, [ebp - 0x6b4]
call fcn.00401400
cmp dword [edi + 0x2c], 8
lea edx, [edi + 0x18]
jb 0x40297e
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x28]
mov edi, dword [ebp - 0x6a4]
mov eax, dword [ebp - 0x6a0]
sub eax, edi
mov dword [ebp - 0x6c0], edi
cmp ecx, eax
ja 0x4029da
add edi, ecx
lea eax, [ecx + ecx]
cmp dword [ebp - 0x6a0], 8
lea esi, [ebp - 0x6b4]
push eax
cmovae esi, dword [ebp - 0x6b4]
mov eax, dword [ebp - 0x6c0]
push edx
mov dword [ebp - 0x6a4], edi
lea eax, [esi + eax*2]
push eax
call fcn.00409280
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0x6cc]
jmp 0x4029f5
push ecx
push edx
mov byte [ebp - 0x6d0], 0
push dword [ebp - 0x6d0]
push ecx
lea ecx, [ebp - 0x6b4]
call fcn.004014b0
lea eax, [ebp - 0x464]
push eax
lea ecx, [ebp - 0x6b4]
call fcn.00401630
lea eax, [ebp - 0x6b4]
push eax
lea ecx, [ebp - 0x238]
call fcn.004033a0
mov edi, dword [ebp - 0x6c4]
mov byte [ebp - 4], 2
and edi, 0xfffffffb
mov edx, dword [ebp - 0x6a0]
cmp edx, 8
jb 0x402a66
mov ecx, dword [ebp - 0x6b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402a5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bc6
push edx
push ecx
call fcn.00407e2f
add esp, 8
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
test esi, esi
je 0x402b58
cmp dword [esi], 1
jne 0x402b4c
mov ecx, dword [esi + 4]
sub esp, 8
push eax
push dword [ebp - 0x69c]
call fcn.00407560
mov dword [0x424414], eax
test eax, eax
jne 0x402b62
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x402b0c
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402b02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bc6
push edx
push ecx
call fcn.00407e2f
add esp, 8
mov eax, dword [ebp - 0x69c]
inc eax
mov dword [ebp - 0x69c], eax
cmp eax, dword [ebp - 0x698]
jl 0x402720
mov ecx, esi
call fcn.00407ad0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407dee
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov dword [0x424414], 0x80000
jmp 0x402b62
mov dword [0x424414], 0x10000
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x40
push 0x41ebb0
push str.__s__d___UnzipItem_failed:
call fcn.004022a0
add esp, 0xc
mov ecx, esi
call fcn.00407ad0
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x402bbf
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402bb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bd5
push edx
push ecx
call fcn.00407e2f
add esp, 8
xor al, al
jmp 0x402b2e
call fcn.0040b8ee
call fcn.0040b8ee
call fcn.0040b8ee
call fcn.0040b8ee
int3