Function at 0x4247f0
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.004b75d0
mov eax, dword [0x504f68]
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], 0x424ef0
mov dword [esp + 0x24], 0x424ee0
mov dword [esp + 0x48], 0x424ef0
mov dword [esp + 0x4c], 0x424ee0
mov dword [esp + 0x2b0], 0x427700
mov dword [esp + 0x2b4], 0x427760
mov dword [esp + 0x2b8], 0x427770
mov dword [esp + 0x2bc], 0x4277d0
mov dword [esp + 0x2c0], eax
mov dword [esp + 0x2c8], ebx
mov dword [esp + 0x2c4], ebx
call fcn.004277f0
lea eax, [esp + 0xa8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call fcn.00424610
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.00427030
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42491c
lea edi, [esp + 0x20]
lea eax, [esp + 0x58]
call fcn.004250f0
mov dword [esp + 0x10], esi
cmp esi, ebx
jne 0x424c04
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 0x424bf3
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 0x4249b5
push ebp
call fcn.004b3730
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x34], esi
cmp eax, ebx
je 0x424bbf
push eax
call fcn.004b3d9e
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x424bc1
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 0x4249e1
mov edx, dword [esp + 0x9c]
lea edx, [edx + eax*2]
cmp ecx, ebx
jbe 0x4249e1
mov eax, ebp
sub edx, ebp
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
sub ecx, 1
jne 0x4249d2
call fcn.004b6758
add eax, 0x20
push eax
push str.Extracting
call fcn.004b9b82
push ebp
lea esi, [esp + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004246c0
mov edi, dword [esp + 0x48]
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x424a25
call fcn.004b6758
add eax, 0x20
push eax
push edi
call fcn.004b9b82
add esp, 8
push edi
push 0x50ce3c
call dword [0x50ce40]
add esp, 8
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], esi
cmp esi, ebx
jne 0x424bf3
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x19], bl
je 0x424a60
push 0x4ef5b0
call fcn.004b98e1
add esp, 4
jmp 0x424aa8
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.00427440
add esp, 0x24
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x424bf3
xor edi, edi
cmp word [ebp], bx
je 0x424ae3
mov esi, ebp
cmp word [esi], 0x2f
jne 0x424ad7
push ebx
xor ecx, ecx
push ebp
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x424acf
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 0x424ab2
mov eax, dword [esp + 0x30]
push ebx
cmp byte [eax + 0x19], bl
je 0x424b07
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x424b99
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x424b99
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 0x424b36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x424bcb
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.00424d30
add esp, 4
test eax, eax
jne 0x424bd9
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x18], edx
jne 0x424bd9
cmp esi, 0xffffffff
je 0x424b85
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x424b85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x424bd2
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x1d], bl
je 0x424b99
mov eax, dword [eax + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x4ef5b4
call fcn.004b98e1
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 0x424bf3
jmp 0x424950
xor ebp, ebp
mov dword [esp + 0x10], 2
jmp 0x424bf3
push str.can_not_open_output_file
jmp 0x424bde
push str.can_not_close_output_file
jmp 0x424bde
push str.can_not_write_output_file
push str._nERROR:__s_n
call fcn.004b98e1
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.004250f0
push ebp
call fcn.004b3730
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
jne 0x424c41
push str._nEverything_is_Ok_n
call fcn.004b98e1
add esp, 4
lea eax, [esp + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
jmp 0x424c95
cmp eax, 4
jne 0x424c52
push str.decoder_doesnt_support_this_archive
push str._nERROR:__s_n
jmp 0x424c7a
cmp eax, 2
jne 0x424c63
push str.can_not_allocate_memory
push str._nERROR:__s_n
jmp 0x424c7a
cmp eax, 3
jne 0x424c74
push str.CRC_error
push str._nERROR:__s_n
jmp 0x424c7a
push eax
push str._nERROR__d_n
call fcn.004b98e1
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.004b3721
add esp, 0x42c8
ret