Function at 0x415e50
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [edi + 0xa84]
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov byte [edi + 0x268], 1
mov word [edi + 0xa9c], 0
cmp eax, esi
je 0x4160f6
cmp word [eax], si
je 0x4160f6
cmp dword [0x4c3f98], esi
jne 0x415e9a
call fcn.0046d5d0
mov dword [0x4c3f98], eax
cmp eax, esi
je 0x415edf
mov ecx, dword [0x4c3f9c]
cmp dword [ecx + 8], 0x10
jae 0x415eb8
call fcn.0046d5d0
mov ecx, dword [0x4c3f9c]
mov dword [ecx + 0xc], eax
cmp eax, esi
je 0x415edf
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xfffffff0
lea edx, [eax + 0x10]
mov dword [0x4c3fa0], eax
mov dword [ecx + 4], edx
cmp eax, esi
je 0x415edf
mov dword [eax], 0x4a6b2c
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
jmp 0x415ee1
xor eax, eax
mov dword [edi + 0x628], eax
cmp eax, esi
je 0x4160f6
mov eax, dword [edi + 0xa84]
push eax
push edi
call fcn.00416260
cmp eax, 1
jne 0x4160f6
push esi
push esi
push esi
push 0x68
push edi
call fcn.0041c3b0
test eax, eax
je 0x4160f6
xor eax, eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
xor ebx, ebx
cmp ebx, dword [0x4c2048]
jge 0x415f61
lea esp, [esp]
mov ecx, dword [0x4c2044]
mov esi, dword [ecx + ebx*4]
push 0
push 0
push esi
mov ecx, edi
call fcn.00423780
test eax, eax
je 0x4160f6
inc ebx
mov byte [esi], 0x12
cmp ebx, dword [0x4c2048]
jl 0x415f30
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0xc]
je 0x415f8d
test eax, eax
je 0x415f6f
mov eax, dword [eax + 0x14]
jmp 0x415f72
mov eax, dword [edi + 8]
push 0
push 0
push eax
mov ecx, edi
call fcn.00423780
test eax, eax
je 0x4160f6
mov edx, dword [edi + 0xc]
mov dword [esp + 0x10], edx
cmp esi, dword [edi + 4]
je 0x415fc3
test esi, esi
je 0x415f9b
mov eax, dword [esi + 0x14]
jmp 0x415f9d
mov eax, dword [edi]
push 0
push 0
push eax
mov ecx, edi
call fcn.00423780
test eax, eax
je 0x4160f6
mov eax, dword [edi + 4]
mov dword [esp + 0xc], eax
mov esi, eax
mov eax, dword [esp + 0x10]
jmp 0x415f24
cmp dword [edi + 8], 0
je 0x415fde
mov edx, dword [edi]
mov ecx, dword [edi + 0xc]
mov dword [ecx + 0x14], edx
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
mov dword [eax + 0x10], ecx
mov edx, dword [edi + 8]
mov dword [edi], edx
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [edi + 0x1c], eax
jle 0x416024
lea esp, [esp]
mov ecx, dword [edi + 0x18]
mov ebx, dword [ecx + eax*4]
cmp byte [ebx + 0x39], 0
jne 0x41601a
mov eax, dword [ebx + 0x18]
push ebx
lea esi, [ebx + 0x24]
push edi
call fcn.0042fe50
mov eax, dword [ebx + 0x1c]
push ebx
lea esi, [ebx + 0x2c]
push edi
call fcn.0042fe50
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 0x1c]
jl 0x415ff0
mov edx, dword [0x4c28d8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [edi + 0x264]
push 0
push 0
push 0
push 0x68
push edi
call fcn.0041c3b0
test eax, eax
je 0x4160f6
push 0
push 0
push 0
push 0x68
push edi
call fcn.0041c3b0
test eax, eax
je 0x4160f6
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x628]
push 0
mov dword [eax + 4], ecx
mov edx, dword [edi]
push 0
push edx
mov ecx, edi
call fcn.004239c0
test eax, eax
je 0x4160f6
lea eax, [esp + 0xb]
push eax
push 3
lea ecx, [esp + 0x18]
push ecx
push 0
push str.ErrorLevel
mov ecx, edi
call fcn.00420890
test eax, eax
jne 0x4160bc
mov eax, dword [esp + 0x10]
xor edx, edx
cmp byte [esp + 0xb], dl
setne dl
xor ecx, ecx
inc edx
push edx
push eax
push edi
mov edx, str.ErrorLevel
call fcn.00420b30
mov dword [0x4c26cc], eax
test eax, eax
je 0x4160f6
push 1
push 0
push 0xffffffffffffffff
push 0x49c8d0
mov ecx, eax
call fcn.00472b80
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x10]
call fcn.00412390
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret