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

Disassembly:
mov eax, 0x4560
call fcn.00a94750
mov eax, dword [0xaf97a0]
xor eax, esp
mov dword [esp + 0x455c], eax
mov eax, dword [esp + 0x4564]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x206
mov esi, edx
mov edi, ecx
lea edx, [esp + 0x415e]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4164], cx
call fcn.00a827a0
add esp, 0xc
push 0x206
lea ecx, [esp + 0x4366]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x436c], ax
call fcn.00a827a0
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
mov ebp, 1
push ebp
push 0x80000000
push esi
mov dword [esp + 0x5c], 0xa6ffa0
mov dword [esp + 0x60], 0xa6ffc0
mov dword [esp + 0x78], 0xa6ffa0
mov dword [esp + 0x7c], 0xa6ffc0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x6c], eax
cmp eax, 0xffffffff
jne 0xa6f5ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0xa6f5ab
lea eax, [ebx + 0xb]
jmp 0xa6fd51
lea edx, [esp + 0x64]
mov dword [esp + 0x64], 0xa6ff00
mov dword [esp + 0x68], 0xa6ff30
mov dword [esp + 0xf0], 0xa72b20
mov dword [esp + 0xf4], 0xa72b80
mov dword [esp + 0xf8], 0xa72b90
mov dword [esp + 0xfc], 0xa72bf0
mov dword [esp + 0x100], edx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x104], ebx
call fcn.00a72c10
lea eax, [esp + 0x70]
call fcn.00a70110
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x64]
lea ecx, [esp + 0x48]
call fcn.00a72530
add esp, 8
cmp eax, ebx
je 0xa6f641
lea eax, [esp + 0x40]
lea ecx, [esp + 0x70]
call fcn.00a70170
jmp 0xa6fd4f
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
mov ecx, 0xaee354
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0xa6f674
cmp dl, bl
je 0xa6f670
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0xa6f674
add eax, 2
add ecx, 2
cmp dl, bl
jne 0xa6f654
xor eax, eax
jmp 0xa6f679
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0xa6f686
mov dword [esp + 0x2c], ebp
jmp 0xa6f727
mov ecx, 0xaed84c
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0xa6f6b0
cmp dl, bl
je 0xa6f6ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0xa6f6b0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0xa6f690
xor eax, eax
jmp 0xa6f6b5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0xa6f6bf
mov dword [esp + 0x3c], ebp
jmp 0xa6f727
mov ecx, 0xaeb640
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0xa6f6e6
cmp dl, bl
je 0xa6f6e2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0xa6f6e6
add eax, 2
add ecx, 2
cmp dl, bl
jne 0xa6f6c6
xor eax, eax
jmp 0xa6f6eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0xa6f727
mov ecx, 0xaec0f0
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0xa6f716
cmp dl, bl
je 0xa6f712
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0xa6f716
add eax, 2
add ecx, 2
cmp dl, bl
jne 0xa6f6f6
xor eax, eax
jmp 0xa6f71b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0xa6fd4f
mov dword [esp + 0x30], ebp
xor ebp, ebp
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x20], ebp
cmp dword [esp + 0xb0], ebx
jbe 0xa6fd3e
lea ebx, [ebx]
mov ecx, ebp
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, dword [esp + 0xb8]
mov eax, ebp
shr eax, 3
test byte [eax + ecx], dl
mov dword [esp + 0x38], eax
mov eax, ebx
setne al
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], eax
cmp dword [esp + 0x2c], ebx
jne 0xa6f798
cmp eax, ebx
je 0xa6f798
cmp dword [esp + 0x30], ebx
je 0xa6fd0a
mov ecx, dword [esp + 0xe4]
mov esi, dword [ecx + ebp*4 + 4]
sub esi, dword [ecx + ebp*4]
lea eax, [ecx + ebp*4 + 4]
mov dword [esp + 0x18], eax
cmp esi, dword [esp + 0x50]
jbe 0xa6f7e9
mov edx, dword [esp + 0x14]
push edx
call fcn.00a7d442
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x50], esi
cmp eax, ebx
je 0xa6fd3e
push eax
call fcn.00a7d987
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0xa6fd3e
jmp 0xa6f7ed
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ebp*4]
mov ecx, dword [ecx]
sub ecx, eax
cmp edi, ebx
je 0xa6f824
mov edx, dword [esp + 0xe8]
lea edx, [edx + eax*2]
cmp ecx, ebx
jbe 0xa6f824
mov eax, edi
sub edx, edi
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
sub ecx, 1
jne 0xa6f815
cmp dword [esp + 0x2c], ebx
je 0xa6f952
mov eax, dword [esp + 0xc4]
cmp eax, ebx
je 0xa6f852
mov cl, byte [esp + 0x34]
mov edx, dword [esp + 0x38]
test byte [edx + eax], cl
je 0xa6f852
mov eax, dword [esp + 0xc8]
mov eax, dword [eax + ebp*4]
jmp 0xa6f854
xor eax, eax
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x4134]
call fcn.00a6f480
mov eax, dword [esp + 0xb8]
mov edx, dword [eax + ebp*8 + 8]
mov ecx, dword [eax + ebp*8 + 0xc]
add esp, 4
sub edx, dword [eax + ebp*8]
sbb ecx, dword [eax + ebp*8 + 4]
push ecx
push edx
lea ecx, [esp + 0x4140]
call fcn.00a6f130
mov eax, dword [esp + 0xd4]
add esp, 8
cmp eax, ebx
je 0xa6f8c3
mov dl, byte [esp + 0x34]
mov ecx, dword [esp + 0x38]
test byte [ecx + eax], dl
je 0xa6f8c3
mov edx, dword [esp + 0xd0]
lea eax, [edx + ebp*8]
push eax
lea edi, [esp + 0x4114]
call fcn.00a6f210
add esp, 4
jmp 0xa6f8fa
mov eax, 0x20202020
mov dword [esp + 0x4110], eax
mov dword [esp + 0x4114], eax
mov dword [esp + 0x4118], eax
mov dword [esp + 0x411c], eax
mov word [esp + 0x4120], ax
mov byte [esp + 0x4122], al
mov byte [esp + 0x4123], bl
lea ecx, [esp + 0x4138]
push ecx
lea edx, [esp + 0x4134]
push edx
lea eax, [esp + 0x4118]
push eax
push str._s__s__10s
call fcn.00a84b7b
mov eax, dword [esp + 0x24]
add esp, 0x10
call fcn.00a6f0d0
test eax, eax
jne 0xa6fd3e
cmp dword [esp + 0x24], ebx
je 0xa6f943
push 0xaee368
call fcn.00a84b7b
add esp, 4
push 0xaeaf8c
call fcn.00a84b7b
jmp 0xa6fd07
mov esi, str.Testing
cmp dword [esp + 0x3c], ebx
jne 0xa6f962
mov esi, str.Extracting
call fcn.00a7d4d0
add eax, 0x20
push eax
push esi
call fcn.00a84a6c
add esp, 8
mov eax, edi
call fcn.00a6f0d0
test eax, eax
jne 0xa6fd3e
cmp dword [esp + 0x24], ebx
je 0xa6f998
push 0xaee368
call fcn.00a84b7b
add esp, 4
jmp 0xa6f9db
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x10c]
push ebp
push edx
lea eax, [esp + 0x94]
call fcn.00a728e0
add esp, 0x24
test eax, eax
jne 0xa6fd3e
cmp dword [esp + 0x3c], ebx
jne 0xa6fcf9
mov eax, dword [esp + 0x14]
xor ebp, ebp
mov dword [esp + 0x18], eax
cmp word [eax], bx
je 0xa6fb59
mov edi, eax
lea ebx, [ebx]
cmp word [edi], 0x2f
jne 0xa6fb47
cmp dword [esp + 0x30], ebx
je 0xa6fb40
push 0x208
lea ecx, [esp + 0x415c]
xor eax, eax
push ebx
push ecx
mov word [edi], ax
call fcn.00a827a0
add esp, 0xc
push 0x208
lea edx, [esp + 0x4364]
push ebx
push edx
call fcn.00a827a0
mov esi, dword [esp + 0x54]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xa6fa50
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x415c]
push esi
push ecx
call fcn.00a81c00
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
jmp 0xa6fa80
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xa6fa80
sub eax, edx
sar eax, 1
mov edx, 0x5c
mov word [esp + eax*2 + 0x4158], dx
mov eax, dword [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xa6faa3
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x4158]
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xa6fac0
sub eax, esi
lea ecx, [edx + edx]
mov edx, dword [esp + 0x14]
push ecx
sar eax, 1
push edx
lea eax, [esp + eax*2 + 0x4160]
push eax
call fcn.00a81c00
lea eax, [esp + 0x4164]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xa6faf2
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x415c]
push edx
lea eax, [esp + 0x4368]
push eax
call fcn.00a81c00
add esp, 0xc
push ebx
lea ecx, [esp + 0x4364]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0xa6fb36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5c
mov word [edi], dx
jmp 0xa6fb47
add edi, 2
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
inc ebp
cmp word [eax + ebp*2], bx
lea edi, [eax + ebp*2]
jne 0xa6fa00
push 0x208
lea ecx, [esp + 0x415c]
push ebx
push ecx
call fcn.00a827a0
mov esi, dword [esp + 0x54]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
jmp 0xa6fb80
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xa6fb80
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x415c]
push esi
push eax
call fcn.00a81c00
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xa6fbb0
sub eax, edx
sar eax, 1
mov ecx, 0x5c
mov word [esp + eax*2 + 0x4158], cx
mov eax, dword [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xa6fbd3
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x4158]
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xa6fbf0
mov ecx, dword [esp + 0x18]
add edx, edx
sub eax, esi
push edx
sar eax, 1
push ecx
lea edx, [esp + eax*2 + 0x4160]
push edx
call fcn.00a81c00
add esp, 0xc
push ebx
cmp dword [esp + 0x28], ebx
je 0xa6fc3f
lea eax, [esp + 0x415c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0xa6fcf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0xa6fcf9
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea ecx, [esp + 0x4170]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0xa6fc75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0xa6fd1e
mov edx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
add eax, edx
push ecx
lea edi, [esp + 0x20]
mov dword [esp + 0x20], ebp
call fcn.00a6fdf0
add esp, 4
test eax, eax
jne 0xa6fd2c
cmp dword [esp + 0x1c], ebp
jne 0xa6fd2c
cmp esi, 0xffffffff
je 0xa6fcc4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0xa6fcc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0xa6fd25
mov eax, dword [esp + 0xc4]
cmp eax, ebx
je 0xa6fcf9
mov dl, byte [esp + 0x34]
mov ecx, dword [esp + 0x38]
test byte [ecx + eax], dl
je 0xa6fcf9
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0x20]
mov ecx, dword [edx + eax*4]
push ecx
lea edx, [esp + 0x415c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0xaeaf8c
call fcn.00a84b7b
mov ebp, dword [esp + 0x24]
add esp, 4
inc ebp
mov dword [esp + 0x20], ebp
cmp ebp, dword [esp + 0xb0]
jb 0xa6f750
jmp 0xa6fd3e
push str.can_not_open_output_file
jmp 0xa6fd31
push str.can_not_close_output_file
jmp 0xa6fd31
push str.can_not_write_output_file
push str._nERROR:__s_n
call fcn.00a84b7b
add esp, 8
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
push ecx
call dword [esp + 0x4c]
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x456c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a7a967
add esp, 0x4560
ret