Function at 0x41aa40
Capabilities:
Create directory
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47a23e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x413c
call fcn.00412710
mov eax, dword [0x486534]
xor eax, esp
mov dword [esp + 0x4138], eax
push ebx
push esi
push edi
mov eax, dword [0x486534]
xor eax, esp
push eax
lea eax, [esp + 0x4150]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x54], 0x416960
mov dword [esp + 0x58], 0x416950
mov dword [esp + 0x68], 0x416930
mov dword [esp + 0x6c], 0x416920
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x60], eax
jne 0x41aaf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x41aaf2
push str.can_not_open_input_file
push str._nERROR:__s_n
jmp 0x41b192
lea edx, [esp + 0x58]
mov dword [esp + 0x58], 0x4171a0
mov dword [esp + 0x5c], 0x417180
mov dword [esp + 0xdc], 0x415f10
mov dword [esp + 0xe0], 0x415f00
mov dword [esp + 0xe4], 0x415ea0
mov dword [esp + 0xe8], 0x415e80
mov dword [esp + 0xec], edx
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], edi
call fcn.00418930
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x54]
lea ecx, [esp + 0x40]
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], edi
call fcn.0041a600
mov esi, eax
add esp, 8
cmp esi, edi
je 0x41abdc
lea edi, [esp + 0x38]
lea eax, [esp + 0x6c]
call fcn.00419b20
test esi, esi
mov ebx, esi
jne 0x41b106
xor eax, eax
mov edi, 0x47d40c
mov esi, str.xltex
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
jne 0x41acb2
mov dword [esp + 0x30], 1
xor edi, edi
cmp dword [esp + 0x88], eax
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x34], edi
jbe 0x41b0f5
mov eax, dword [esp + 0x7c]
add eax, 0x19
mov dword [esp + 0x18], eax
xor eax, eax
cmp dword [esp + 0x30], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], eax
jne 0x41ac65
mov ecx, dword [esp + 0x18]
cmp byte [ecx], al
je 0x41ac65
cmp dword [esp + 0x2c], eax
je 0x41b088
mov eax, dword [esp + 0xac]
mov esi, dword [eax + edi*4 + 4]
sub esi, dword [eax + edi*4]
cmp esi, dword [esp + 0x44]
jbe 0x41ad28
mov edx, dword [esp + 0x1c]
push edx
call fcn.00405384
lea eax, [esi + esi]
add esp, 4
test eax, eax
mov dword [esp + 0x44], esi
je 0x41b0a3
push eax
call fcn.004062d4
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x41b0ab
jmp 0x41ad2c
mov edi, 0x47d410
mov esi, str.xltex
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41acd4
mov dword [esp + 0x24], 1
jmp 0x41ac15
mov edi, 0x47d414
mov esi, str.xltex
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x41ac15
mov edi, 0x47d418
mov esi, str.xltex
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41ad0f
mov dword [esp + 0x2c], 1
jmp 0x41ac15
push 0x47d41c
push str._nERROR:__s_n
call fcn.00406397
mov ebx, 0xb
jmp 0x41b103
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
mov eax, edi
lea edx, [esp + 0x6c]
call fcn.00416050
cmp dword [esp + 0x30], 0
je 0x41ae28
mov esi, dword [esp + 0x18]
cmp byte [esi + 4], 0
je 0x41ad53
mov eax, dword [esi - 5]
jmp 0x41ad55
xor eax, eax
movzx ecx, byte [esi]
push ecx
lea ecx, [esp + 0x4124]
call fcn.004164b0
mov edx, dword [esi - 0xd]
mov eax, dword [esi - 0x11]
add esp, 4
push edx
push eax
lea ecx, [esp + 0x4130]
call fcn.004165a0
add esp, 8
cmp byte [esi + 3], 0
je 0x41ad9b
lea ecx, [esp + 0x4100]
push ecx
lea eax, [esi - 0x19]
push eax
call fcn.00416ec0
add esp, 8
jmp 0x41add3
mov eax, 0x20202020
mov dword [esp + 0x4100], eax
mov dword [esp + 0x4104], eax
mov dword [esp + 0x4108], eax
mov dword [esp + 0x410c], eax
mov word [esp + 0x4110], ax
mov byte [esp + 0x4112], al
mov byte [esp + 0x4113], 0
lea edx, [esp + 0x4128]
push edx
lea eax, [esp + 0x4124]
push eax
lea ecx, [esp + 0x4108]
push ecx
push str._s__s__10s
call fcn.00406397
add esp, 0x10
mov eax, ebx
call fcn.004188e0
mov ebx, eax
test ebx, ebx
jne 0x41b0f5
mov edx, dword [esp + 0x18]
cmp byte [edx], al
je 0x41ae1e
push 0x47d440
call fcn.00406397
add esp, 4
push 0x47d444
jmp 0x41b080
cmp dword [esp + 0x24], 0
mov esi, str.Testing
jne 0x41ae39
mov esi, str.Extracting
call fcn.0040645c
add eax, 0x20
push eax
push esi
call fcn.00406143
add esp, 8
mov eax, ebx
call fcn.004188e0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x41b0f5
mov eax, dword [esp + 0x18]
cmp byte [eax], bl
je 0x41ae77
push 0x47d460
call fcn.00406397
add esp, 4
jmp 0x41aec0
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0xf8]
push edi
push edx
lea eax, [esp + 0x90]
call fcn.00419c10
mov ebx, eax
add esp, 0x24
test ebx, ebx
mov dword [esp + 0x14], eax
jne 0x41b0f5
cmp dword [esp + 0x24], 0
jne 0x41b07b
mov esi, dword [esp + 0x1c]
xor edi, edi
cmp word [esi], di
mov ebx, esi
je 0x41af1c
cmp word [esi], 0x2f
jne 0x41af0b
cmp dword [esp + 0x2c], 0
je 0x41af08
mov eax, dword [esp + 0x1c]
push 0
push eax
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41af01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov word [esi], 0x5c
jmp 0x41af0b
lea ebx, [esi + 2]
mov ecx, dword [esp + 0x1c]
add edi, 1
cmp word [ecx + edi*2], 0
lea esi, [ecx + edi*2]
jne 0x41aed8
mov edx, dword [esp + 0x68]
lea eax, [esp + 0xc0]
call fcn.00402560
xor esi, esi
mov eax, ebx
mov dword [esp + 0x4158], esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41af40
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0xc8]
call fcn.00402af0
mov eax, dword [esp + 0x18]
add eax, 0xffffffe7
cmp byte [eax + 0x19], 0
je 0x41afd5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41af7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x47d464
call fcn.00406397
add esp, 4
mov dword [esp + 0x4158], 0xffffffff
cmp dword [esp + 0xd8], 8
jb 0x41afae
mov edx, dword [esp + 0xc4]
push edx
call fcn.0040473a
add esp, 4
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], esi
mov word [esp + 0xc4], si
jmp 0x41b088
cmp dword [esp + 0xd8], 8
mov eax, dword [esp + 0xc4]
jae 0x41afed
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x40]
push ecx
call fcn.004179f0
add esp, 4
test eax, eax
jne 0x41b0b2
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x40]
add eax, edx
push ecx
lea edi, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.004166c0
add esp, 4
test eax, eax
jne 0x41b0c0
cmp dword [esp + 0x20], esi
jne 0x41b0c0
lea esi, [esp + 0x40]
call fcn.004167c0
test eax, eax
jne 0x41b0b9
mov eax, dword [esp + 0x18]
add eax, 0xffffffe7
cmp byte [eax + 0x1d], 0
je 0x41b05c
mov edx, dword [eax + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esi, [esp + 0xc0]
mov dword [esp + 0x4158], 0xffffffff
call fcn.004025a0
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
push 0x47d4bc
call fcn.00406397
add esp, 4
add dword [esp + 0x18], 0x20
add edi, 1
cmp edi, dword [esp + 0x88]
mov dword [esp + 0x34], edi
jb 0x41ac43
jmp 0x41b0f5
mov dword [esp + 0x1c], 0
mov ebx, 2
jmp 0x41b0f5
push str.can_not_open_output_file
jmp 0x41b0c5
push str.can_not_close_output_file
jmp 0x41b0c5
push str.can_not_write_output_file
push str._nERROR:__s_n
call fcn.00406397
add esp, 8
lea esi, [esp + 0xc0]
mov dword [esp + 0x14], 0xb
mov dword [esp + 0x4158], 0xffffffff
call fcn.004025a0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [esp + 0x44]
add esp, 8
lea edi, [esp + 0x38]
lea eax, [esp + 0x6c]
call fcn.00419b20
mov edx, dword [esp + 0x1c]
push edx
call fcn.00405384
mov eax, dword [esp + 0x64]
add esp, 4
cmp eax, 0xffffffff
je 0x41b144
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41b13c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b144
mov dword [esp + 0x60], 0xffffffff
test ebx, ebx
jne 0x41b159
push str._nEverything_is_Ok_n
call fcn.00406397
add esp, 4
xor eax, eax
jmp 0x41b19f
cmp ebx, 4
jne 0x41b16a
push str.decoder_doesnt_support_this_archive
push str._nERROR:__s_n
jmp 0x41b192
cmp ebx, 2
jne 0x41b17b
push str.can_not_allocate_memory
push str._nERROR:__s_n
jmp 0x41b192
cmp ebx, 3
jne 0x41b18c
push str.CRC_error
push str._nERROR:__s_n
jmp 0x41b192
push ebx
push str._nERROR__d_n
call fcn.00406397
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x4150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4138]
xor ecx, esp
call fcn.0040473f
mov esp, ebp
pop ebp
ret