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

Disassembly:
push 0xffffffffffffffff
push 0x4c8bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4fcb54]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
lea edi, [esp + 0x23c]
mov dword [esp + 0x234], 0
mov dword [esp + 0x14], 1
call fcn.0040d310
mov ebx, edi
call fcn.0040d290
mov bl, 0x5c
call fcn.004159e0
mov ebx, edi
call fcn.0040d290
mov edi, dword [esp + 0x23c]
mov ebx, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
lea esi, [ebx + 1]
sub eax, esi
or eax, ecx
jge 0x416711
push esi
lea ecx, [esp + 0x240]
call fcn.00402260
mov edi, dword [esp + 0x23c]
test esi, esi
mov byte [ebx + edi], 0x5c
jl 0x416762
cmp esi, dword [edi - 8]
jg 0x416762
lea eax, [esp + 0x124]
push eax
mov dword [edi - 0xc], esi
push 0x104
mov byte [esi + edi], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebp, dword [edi - 0xc]
push 0x104
lea ecx, [esp + 0x24]
push 0
push ecx
mov dword [esp + 0x24], ebp
call fcn.004ac6c0
add esp, 0xc
cmp ebp, 2
jle 0x4168b8
cmp dword [edi - 0xc], 1
jge 0x41676c
push 0x80070057
call fcn.004021e0
cmp byte [edi + 1], 0x3a
jne 0x4167d6
xor esi, esi
test ebp, ebp
jle 0x4168c0
mov ebx, edi
lea edx, [esp + 0x20]
sub ebx, edx
cmp dword [esp + 0x14], 0
je 0x4168c0
test esi, esi
jl 0x416762
cmp esi, dword [edi - 0xc]
jg 0x416762
lea eax, [esp + esi + 0x20]
mov cl, byte [ebx + eax]
cmp cl, 0x5c
mov byte [eax], cl
jne 0x4167ca
cmp esi, 2
je 0x4167ca
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4167ca
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [esp + 0x14], eax
add esi, 1
cmp esi, ebp
jl 0x416784
jmp 0x4168c0
push 2
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x244]
call fcn.004061a0
mov eax, dword [eax]
push 0x4e3494
push eax
call fcn.004a30dd
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41681e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4168b8
cmp dword [edi - 0xc], 2
jge 0x416831
or ebp, 0xffffffff
jmp 0x41684f
lea ecx, [edi + 2]
push 0x4e2d74
push ecx
call fcn.004a402b
add esp, 8
test eax, eax
jne 0x41684b
or ebp, 0xffffffff
jmp 0x41684f
sub eax, edi
mov ebp, eax
xor esi, esi
cmp dword [esp + 0x18], esi
jle 0x4168c0
mov ebx, edi
lea edx, [esp + 0x20]
sub ebx, edx
cmp dword [esp + 0x14], 0
je 0x4168c0
cmp ebp, 0xffffffff
je 0x4168c0
test esi, esi
jl 0x416762
cmp esi, dword [edi - 0xc]
jg 0x416762
lea eax, [esp + esi + 0x20]
mov cl, byte [ebx + eax]
cmp cl, 0x5c
mov byte [eax], cl
jne 0x4168ad
cmp esi, ebp
jle 0x4168ad
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4168ad
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [esp + 0x14], eax
add esi, 1
cmp esi, dword [esp + 0x18]
jl 0x41685f
jmp 0x4168c0
mov dword [esp + 0x14], 0
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [edi - 0x10]
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4168f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004a3135
add esp, 0x224
ret