Function at 0x4154e0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x87c]
push esi
xor esi, esi
push edi
mov byte [ebx + 0x60], 1
mov word [ebx + 0x894], 0
cmp eax, esi
je 0x41570f
cmp word [eax], si
je 0x41570f
cmp dword [0x4c2f54], esi
jne 0x41552a
call fcn.00464600
mov dword [0x4c2f54], eax
cmp eax, esi
je 0x41556f
mov ecx, dword [0x4c2f58]
cmp dword [ecx + 8], 0x10
jae 0x415548
call fcn.00464600
mov ecx, dword [0x4c2f58]
mov dword [ecx + 0xc], eax
cmp eax, esi
je 0x41556f
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xfffffff0
lea edx, [eax + 0x10]
mov dword [0x4c2f5c], eax
mov dword [ecx + 4], edx
cmp eax, esi
je 0x41556f
mov dword [eax], 0x4a5c64
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
jmp 0x415571
xor eax, eax
mov dword [ebx + 0x420], eax
cmp eax, esi
je 0x41570f
mov eax, dword [ebx + 0x87c]
push eax
push ebx
call fcn.004157e0
cmp eax, 1
jne 0x41570f
push esi
push esi
push esi
push 0x67
push ebx
call fcn.0041b130
test eax, eax
je 0x41570f
xor eax, eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
xor edi, edi
cmp edi, dword [0x4c0e8c]
jge 0x4155f1
lea esp, [esp]
mov ecx, dword [0x4c0e88]
mov esi, dword [ecx + edi*4]
push 0
push 0
push esi
mov ecx, ebx
call fcn.004212a0
test eax, eax
je 0x41570f
inc edi
mov byte [esi], 0x12
cmp edi, dword [0x4c0e8c]
jl 0x4155c0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 0xc]
je 0x41561d
test eax, eax
je 0x4155ff
mov eax, dword [eax + 0x14]
jmp 0x415602
mov eax, dword [ebx + 8]
push 0
push 0
push eax
mov ecx, ebx
call fcn.004212a0
test eax, eax
je 0x41570f
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x10], edx
cmp esi, dword [ebx + 4]
je 0x415653
test esi, esi
je 0x41562b
mov eax, dword [esi + 0x14]
jmp 0x41562d
mov eax, dword [ebx]
push 0
push 0
push eax
mov ecx, ebx
call fcn.004212a0
test eax, eax
je 0x41570f
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], eax
mov esi, eax
mov eax, dword [esp + 0x10]
jmp 0x4155b4
cmp dword [ebx + 8], 0
je 0x41566e
mov edx, dword [ebx]
mov ecx, dword [ebx + 0xc]
mov dword [ecx + 0x14], edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0x10], ecx
mov edx, dword [ebx + 8]
mov dword [ebx], edx
mov eax, dword [0x4c168c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [ebx + 0x5c]
push 0
push 0
push 0
push 0x67
push ebx
call fcn.0041b130
test eax, eax
je 0x41570f
push 0
push 0
push 0
push 0x67
push ebx
call fcn.0041b130
test eax, eax
je 0x41570f
mov ecx, dword [ebx + 0x420]
mov edx, dword [ebx + 4]
push 0
mov dword [ecx + 4], edx
mov eax, dword [ebx]
push 0
push eax
mov ecx, ebx
call fcn.004214e0
test eax, eax
je 0x41570f
push 0
xor ecx, ecx
xor edi, edi
mov esi, str.ErrorLevel
call fcn.0041e2c0
mov dword [0x4c1688], eax
test eax, eax
je 0x41570f
push 1
push edi
push 0xffffffffffffffff
push 0x49c138
mov ecx, eax
call fcn.004698a0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, dword [esp + 0x10]
push edx
call fcn.00411ee0
add esp, 4
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret