Function at 0x4016e0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x414b25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x544
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x28], esi
call fcn.00402720
mov eax, dword [esp + 0x55c]
lea ecx, [esp + 0x1c]
push eax
call fcn.0040e380
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
mov dword [esp + 0x554], ebp
mov eax, dword [ecx - 8]
cmp eax, ebp
je 0x401b93
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.00402830
cmp eax, ebp
mov dword [esp + 0x20], eax
je 0x401b9e
push ebx
lea eax, [esp + 0x450]
push edi
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x254]
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x154]
push edx
push eax
push ecx
call fcn.00403cc9
add esp, 0x14
lea edx, [esp + 0x350]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x38]
call fcn.0040d057
lea eax, [esp + 0x250]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x560], 1
call fcn.0040e65b
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x55c], 2
mov eax, dword [ecx - 8]
cmp eax, 2
jle 0x40192b
lea edx, [esp + 0x20]
push 2
push edx
lea ecx, [esp + 0x18]
call fcn.0040ce61
mov eax, dword [eax]
push 0x41b100
push eax
call fcn.00403c1a
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
sete bl
call fcn.0040e5ed
test bl, bl
je 0x40192b
mov eax, dword [0x41b2ac]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
mov ebx, 3
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
add eax, 0xfffffffe
mov byte [esp + 0x55c], bl
push eax
push edx
call fcn.0040cde5
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x560], 4
call fcn.0040e6da
lea ecx, [esp + 0x1c]
mov byte [esp + 0x55c], bl
call fcn.0040e5ed
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0040ea68
mov esi, eax
cmp esi, 0xffffffff
je 0x4018f3
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.0040ce61
push eax
lea ecx, [esp + 0x20]
push 0x41b100
push ecx
mov byte [esp + 0x568], 5
call fcn.0040e8aa
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x560], 6
call fcn.0040e6da
lea ecx, [esp + 0x1c]
mov byte [esp + 0x55c], 5
call fcn.0040e5ed
lea ecx, [esp + 0x14]
mov byte [esp + 0x55c], bl
call fcn.0040e5ed
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040cde5
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x560], 7
call fcn.0040e6da
lea ecx, [esp + 0x14]
mov byte [esp + 0x55c], bl
call fcn.0040e5ed
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x55c], 2
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.0040e5ed
lea ecx, [esp + 0x14c]
push ecx
lea ecx, [esp + 0x30]
call fcn.0040e65b
mov eax, dword [esp + 0x10]
mov byte [esp + 0x55c], 8
cmp dword [eax - 8], ebp
je 0x401992
mov bl, 9
cmp byte [eax], 0x5c
jne 0x401992
mov eax, dword [eax - 8]
lea edx, [esp + 0x14]
dec eax
lea ecx, [esp + 0x10]
push eax
push edx
call fcn.0040cde5
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x560], bl
call fcn.0040e6da
lea ecx, [esp + 0x14]
mov byte [esp + 0x55c], 8
call fcn.0040e5ed
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebp
jne 0x40194f
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0040ea68
mov esi, eax
cmp esi, 0xffffffff
je 0x401a32
mov bl, 0xb
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.0040ce61
mov ecx, dword [esp + 0x40]
push eax
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x564], 0xa
call fcn.0040d25f
lea ecx, [esp + 0x14]
mov byte [esp + 0x55c], 8
call fcn.0040e5ed
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040cde5
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x560], bl
call fcn.0040e6da
lea ecx, [esp + 0x1c]
mov byte [esp + 0x55c], 8
call fcn.0040e5ed
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0040ea68
mov esi, eax
cmp esi, 0xffffffff
jne 0x4019aa
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebp
je 0x401a4e
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.0040d25f
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401a71
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.0040d233
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040e380
mov ecx, dword [0x41b2ac]
mov dword [esp + 0x34], ecx
mov bl, 0xd
xor esi, esi
cmp edi, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov byte [esp + 0x55c], bl
jle 0x401b06
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
lea eax, [edx + esi*4]
push eax
push 0x5c
push ecx
call fcn.0040cd46
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x560], 0xe
call fcn.0040e9b9
lea ecx, [esp + 0x14]
mov byte [esp + 0x55c], bl
call fcn.0040e5ed
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x401aed
mov eax, dword [esp + 0x18]
push eax
call fcn.0040eb24
mov ecx, dword [esp + 0x18]
push ecx
call ebp
mov edx, dword [esp + 0x18]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
inc esi
cmp esi, edi
jl 0x401aa2
mov eax, dword [esp + 0x18]
push eax
call ebp
pop edi
pop ebx
test eax, eax
jne 0x401b2a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
push eax
call fcn.00402730
jmp 0x401b32
mov dword [esp + 0x20], 1
lea edx, [esp + 0x348]
push edx
call ebp
lea ecx, [esp + 0x2c]
mov byte [esp + 0x554], 0xc
call fcn.0040e5ed
lea ecx, [esp + 0x10]
mov byte [esp + 0x554], 8
call fcn.0040e5ed
lea ecx, [esp + 0x24]
mov byte [esp + 0x554], 2
call fcn.0040e5ed
lea ecx, [esp + 8]
mov byte [esp + 0x554], 1
call fcn.0040e5ed
lea ecx, [esp + 0x30]
mov byte [esp + 0x554], 0
call fcn.0040d08a
jmp 0x401b9e
mov ecx, esi
call fcn.00402810
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x554], 0xffffffff
call fcn.0040e5ed
mov ecx, dword [esp + 0x54c]
mov eax, dword [esp + 0x20]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x550
ret 4