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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x468ebe
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x413c
call fcn.00412700
mov eax, dword [0x473534]
xor eax, esp
mov dword [esp + 0x4138], eax
push ebx
push esi
push edi
mov eax, dword [0x473534]
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], 0x416950
mov dword [esp + 0x58], 0x416940
mov dword [esp + 0x68], 0x416920
mov dword [esp + 0x6c], 0x416910
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x60], eax
jne 0x41aae2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x41aae2
push str.can_not_open_input_file
push str._nERROR:__s_n
jmp 0x41b182
lea edx, [esp + 0x58]
mov dword [esp + 0x58], 0x417190
mov dword [esp + 0x5c], 0x417170
mov dword [esp + 0xdc], 0x415f00
mov dword [esp + 0xe0], 0x415ef0
mov dword [esp + 0xe4], 0x415e90
mov dword [esp + 0xe8], 0x415e70
mov dword [esp + 0xec], edx
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], edi
call fcn.00418920
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.0041a5f0
mov esi, eax
add esp, 8
cmp esi, edi
je 0x41abcc
lea edi, [esp + 0x38]
lea eax, [esp + 0x6c]
call fcn.00419b10
test esi, esi
mov ebx, esi
jne 0x41b0f6
xor eax, eax
mov edi, 0x46c40c
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 0x41aca2
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 0x41b0e5
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 0x41ac55
mov ecx, dword [esp + 0x18]
cmp byte [ecx], al
je 0x41ac55
cmp dword [esp + 0x2c], eax
je 0x41b078
mov eax, dword [esp + 0xac]
mov esi, dword [eax + edi*4 + 4]
sub esi, dword [eax + edi*4]
cmp esi, dword [esp + 0x44]
jbe 0x41ad18
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 0x41b093
push eax
call fcn.004062d4
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x41b09b
jmp 0x41ad1c
mov edi, 0x46c410
mov esi, str.xltex
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41acc4
mov dword [esp + 0x24], 1
jmp 0x41ac05
mov edi, 0x46c414
mov esi, str.xltex
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x41ac05
mov edi, 0x46c418
mov esi, str.xltex
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41acff
mov dword [esp + 0x2c], 1
jmp 0x41ac05
push 0x46c41c
push str._nERROR:__s_n
call fcn.00406397
mov ebx, 0xb
jmp 0x41b0f3
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
mov eax, edi
lea edx, [esp + 0x6c]
call fcn.00416040
cmp dword [esp + 0x30], 0
je 0x41ae18
mov esi, dword [esp + 0x18]
cmp byte [esi + 4], 0
je 0x41ad43
mov eax, dword [esi - 5]
jmp 0x41ad45
xor eax, eax
movzx ecx, byte [esi]
push ecx
lea ecx, [esp + 0x4124]
call fcn.004164a0
mov edx, dword [esi - 0xd]
mov eax, dword [esi - 0x11]
add esp, 4
push edx
push eax
lea ecx, [esp + 0x4130]
call fcn.00416590
add esp, 8
cmp byte [esi + 3], 0
je 0x41ad8b
lea ecx, [esp + 0x4100]
push ecx
lea eax, [esi - 0x19]
push eax
call fcn.00416eb0
add esp, 8
jmp 0x41adc3
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.004188d0
mov ebx, eax
test ebx, ebx
jne 0x41b0e5
mov edx, dword [esp + 0x18]
cmp byte [edx], al
je 0x41ae0e
push 0x46c440
call fcn.00406397
add esp, 4
push 0x46c444
jmp 0x41b070
cmp dword [esp + 0x24], 0
mov esi, str.Testing
jne 0x41ae29
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.004188d0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x41b0e5
mov eax, dword [esp + 0x18]
cmp byte [eax], bl
je 0x41ae67
push 0x46c460
call fcn.00406397
add esp, 4
jmp 0x41aeb0
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.00419c00
mov ebx, eax
add esp, 0x24
test ebx, ebx
mov dword [esp + 0x14], eax
jne 0x41b0e5
cmp dword [esp + 0x24], 0
jne 0x41b06b
mov esi, dword [esp + 0x1c]
xor edi, edi
cmp word [esi], di
mov ebx, esi
je 0x41af0c
cmp word [esi], 0x2f
jne 0x41aefb
cmp dword [esp + 0x2c], 0
je 0x41aef8
mov eax, dword [esp + 0x1c]
push 0
push eax
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41aef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov word [esi], 0x5c
jmp 0x41aefb
lea ebx, [esi + 2]
mov ecx, dword [esp + 0x1c]
add edi, 1
cmp word [ecx + edi*2], 0
lea esi, [ecx + edi*2]
jne 0x41aec8
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 0x41af30
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 0x41afc5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41af6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x46c464
call fcn.00406397
add esp, 4
mov dword [esp + 0x4158], 0xffffffff
cmp dword [esp + 0xd8], 8
jb 0x41af9e
mov edx, dword [esp + 0xc4]
push edx
call fcn.0040473a
add esp, 4
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], esi
mov word [esp + 0xc4], si
jmp 0x41b078
cmp dword [esp + 0xd8], 8
mov eax, dword [esp + 0xc4]
jae 0x41afdd
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x40]
push ecx
call fcn.004179e0
add esp, 4
test eax, eax
jne 0x41b0a2
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.004166b0
add esp, 4
test eax, eax
jne 0x41b0b0
cmp dword [esp + 0x20], esi
jne 0x41b0b0
lea esi, [esp + 0x40]
call fcn.004167b0
test eax, eax
jne 0x41b0a9
mov eax, dword [esp + 0x18]
add eax, 0xffffffe7
cmp byte [eax + 0x1d], 0
je 0x41b04c
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 ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
push 0x46c4bc
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 0x41ac33
jmp 0x41b0e5
mov dword [esp + 0x1c], 0
mov ebx, 2
jmp 0x41b0e5
push str.can_not_open_output_file
jmp 0x41b0b5
push str.can_not_close_output_file
jmp 0x41b0b5
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.00419b10
mov edx, dword [esp + 0x1c]
push edx
call fcn.00405384
mov eax, dword [esp + 0x64]
add esp, 4
cmp eax, 0xffffffff
je 0x41b134
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41b12c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b134
mov dword [esp + 0x60], 0xffffffff
test ebx, ebx
jne 0x41b149
push str._nEverything_is_Ok_n
call fcn.00406397
add esp, 4
xor eax, eax
jmp 0x41b18f
cmp ebx, 4
jne 0x41b15a
push str.decoder_doesnt_support_this_archive
push str._nERROR:__s_n
jmp 0x41b182
cmp ebx, 2
jne 0x41b16b
push str.can_not_allocate_memory
push str._nERROR:__s_n
jmp 0x41b182
cmp ebx, 3
jne 0x41b17c
push str.CRC_error
push str._nERROR:__s_n
jmp 0x41b182
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