Function at 0x414c80
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 + 0x4b4]
push esi
xor esi, esi
push edi
mov byte [ebx + 0x60], 1
mov word [ebx + 0x4cc], 0
cmp eax, esi
je 0x414eaf
cmp byte [eax], 0
je 0x414eaf
cmp dword [0x4a2b6c], esi
jne 0x414cca
call fcn.00461680
mov dword [0x4a2b6c], eax
cmp eax, esi
je 0x414d0f
mov ecx, dword [0x4a2b70]
cmp dword [ecx + 8], 0x10
jae 0x414ce8
call fcn.00461680
mov ecx, dword [0x4a2b70]
mov dword [ecx + 0xc], eax
cmp eax, esi
je 0x414d0f
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xfffffff0
lea edx, [eax + 0x10]
mov dword [0x4a2b74], eax
mov dword [ecx + 4], edx
cmp eax, esi
je 0x414d0f
mov dword [eax], 0x49588a
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
jmp 0x414d11
xor eax, eax
mov dword [ebx + 0x260], eax
cmp eax, esi
je 0x414eaf
mov ecx, dword [ebx + 0x4b4]
push ebx
call fcn.00414f80
cmp eax, 1
jne 0x414eaf
push esi
push esi
push esi
push 0x67
push ebx
call fcn.0041a810
test eax, eax
je 0x414eaf
xor eax, eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
xor edi, edi
cmp edi, dword [0x4a0ba8]
jge 0x414d90
jmp 0x414d60
mov eax, dword [0x4a0ba4]
mov esi, dword [eax + edi*4]
push 0
push 0
push esi
mov ecx, ebx
call fcn.0041f340
test eax, eax
je 0x414eaf
inc edi
mov byte [esi], 0x12
cmp edi, dword [0x4a0ba8]
jl 0x414d60
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 0xc]
je 0x414dbc
test eax, eax
je 0x414d9e
mov eax, dword [eax + 0x14]
jmp 0x414da1
mov eax, dword [ebx + 8]
push 0
push 0
push eax
mov ecx, ebx
call fcn.0041f340
test eax, eax
je 0x414eaf
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x10], ecx
cmp esi, dword [ebx + 4]
je 0x414df2
test esi, esi
je 0x414dca
mov eax, dword [esi + 0x14]
jmp 0x414dcc
mov eax, dword [ebx]
push 0
push 0
push eax
mov ecx, ebx
call fcn.0041f340
test eax, eax
je 0x414eaf
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], edx
mov esi, edx
jmp 0x414d53
cmp dword [ebx + 8], 0
je 0x414e0d
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x14], ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 0xc]
mov dword [edx + 0x10], eax
mov ecx, dword [ebx + 8]
mov dword [ebx], ecx
mov edx, dword [0x4a14ac]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
inc dword [ebx + 0x5c]
push 0
push 0
push 0
push 0x67
push ebx
call fcn.0041a810
test eax, eax
je 0x414eaf
push 0
push 0
push 0
push 0x67
push ebx
call fcn.0041a810
test eax, eax
je 0x414eaf
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x260]
push 0
mov dword [eax + 4], ecx
mov edx, dword [ebx]
push 0
push edx
mov ecx, ebx
call fcn.0041f580
test eax, eax
je 0x414eaf
push 0
xor ecx, ecx
xor edi, edi
mov esi, str.ErrorLevel
call fcn.0041d750
mov dword [0x4a13a4], eax
test eax, eax
je 0x414eaf
push 1
push edi
push 0xffffffffffffffff
push 0x4900b0
mov ecx, eax
call fcn.004668b0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00411710
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