Function at 0x4396f0
Capabilities:
Create directory
Get common file path
Resolve function by parsing pe exports
Set current directory
Set file attributes

Disassembly:
mov eax, 0x42c8
call fcn.00505a10
mov eax, dword [0x568fd0]
xor eax, esp
mov dword [esp + 0x42c4], eax
mov eax, dword [esp + 0x42cc]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], 0x43b8d0
mov dword [esp + 0x24], 0x43b8f0
mov dword [esp + 0x48], 0x43b8d0
mov dword [esp + 0x4c], 0x43b8f0
mov dword [esp + 0x2b0], 0x43e0f0
mov dword [esp + 0x2b4], 0x43e150
mov dword [esp + 0x2b8], 0x43e160
mov dword [esp + 0x2bc], 0x43e1c0
mov dword [esp + 0x2c0], eax
mov dword [esp + 0x2c8], ebx
mov dword [esp + 0x2c4], ebx
call fcn.0043e1e0
lea eax, [esp + 0xa8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call fcn.00439510
lea ecx, [esp + 0x2b0]
push ecx
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x50]
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
call fcn.0043da20
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x43981c
lea edi, [esp + 0x20]
lea eax, [esp + 0x58]
call fcn.0043bae0
mov dword [esp + 0x10], esi
cmp esi, ebx
jne 0x439b04
xor eax, eax
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x74], ebx
jbe 0x439af3
mov dword [esp + 0x2c], ebx
lea esp, [esp]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x98]
mov esi, dword [edi + eax*4 + 4]
sub esi, dword [edi + eax*4]
add edx, ecx
lea ecx, [edi + eax*4 + 4]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], ecx
cmp esi, dword [esp + 0x34]
jbe 0x4398b5
push ebp
call fcn.00502493
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x34], esi
cmp eax, ebx
je 0x439abf
push eax
call fcn.005063d6
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x439ac1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + eax*4]
mov ecx, dword [ecx]
sub ecx, eax
cmp ebp, ebx
je 0x4398e1
mov edx, dword [esp + 0x9c]
lea edx, [edx + eax*2]
cmp ecx, ebx
jbe 0x4398e1
mov eax, ebp
sub edx, ebp
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
sub ecx, 1
jne 0x4398d2
call fcn.0050466f
add eax, 0x20
push eax
push str.Extracting
call fcn.00508afa
push ebp
lea esi, [esp + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004395c0
mov edi, dword [esp + 0x48]
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x439925
call fcn.0050466f
add eax, 0x20
push eax
push edi
call fcn.00508afa
add esp, 8
push edi
push 0x56b34c
call dword [0x56b350]
add esp, 8
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], esi
cmp esi, ebx
jne 0x439af3
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x19], bl
je 0x439960
push 0x54f6f4
call fcn.00508798
add esp, 4
jmp 0x4399a8
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
lea eax, [esp + 0x2d0]
push eax
lea eax, [esp + 0x7c]
call fcn.0043de30
add esp, 0x24
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x439af3
xor edi, edi
cmp word [ebp], bx
je 0x4399e3
mov esi, ebp
cmp word [esi], 0x2f
jne 0x4399d7
push ebx
xor ecx, ecx
push ebp
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4399cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5c
mov word [esi], dx
inc edi
cmp word [ebp + edi*2], bx
lea esi, [ebp + edi*2]
jne 0x4399b2
mov eax, dword [esp + 0x30]
push ebx
cmp byte [eax + 0x19], bl
je 0x439a07
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x439a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x439a99
push 0x80
push 2
push ebx
push 1
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x50], esi
cmp esi, 0xffffffff
jne 0x439a36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x439acb
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x50]
add eax, edx
push ecx
lea edi, [esp + 0x1c]
call fcn.0043b720
add esp, 4
test eax, eax
jne 0x439ad9
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x18], edx
jne 0x439ad9
cmp esi, 0xffffffff
je 0x439a85
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x439a85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x439ad2
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x1d], bl
je 0x439a99
mov eax, dword [eax + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x54f6f8
call fcn.00508798
mov eax, dword [esp + 0x18]
add dword [esp + 0x30], 0x20
inc eax
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x74]
jae 0x439af3
jmp 0x439850
xor ebp, ebp
mov dword [esp + 0x10], 2
jmp 0x439af3
push str.can_not_open_output_file
jmp 0x439ade
push str.can_not_close_output_file
jmp 0x439ade
push str.can_not_write_output_file
push str._nERROR:__s_n
call fcn.00508798
add esp, 8
mov dword [esp + 0x10], 0xb
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [esp + 0x2c]
add esp, 8
lea edi, [esp + 0x20]
lea eax, [esp + 0x58]
call fcn.0043bae0
push ebp
call fcn.00502493
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
jne 0x439b41
push str._nEverything_is_Ok_n
call fcn.00508798
add esp, 4
lea eax, [esp + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
jmp 0x439b95
cmp eax, 4
jne 0x439b52
push str.decoder_doesnt_support_this_archive
push str._nERROR:__s_n
jmp 0x439b7a
cmp eax, 2
jne 0x439b63
push str.can_not_allocate_memory
push str._nERROR:__s_n
jmp 0x439b7a
cmp eax, 3
jne 0x439b74
push str.CRC_error
push str._nERROR:__s_n
jmp 0x439b7a
push eax
push str._nERROR__d_n
call fcn.00508798
add esp, 8
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, 1
mov ecx, dword [esp + 0x42d4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00501b9a
add esp, 0x42c8
ret