Function at 0x4161b0
Capabilities:
Set current directory

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x5ec]
xor ebx, ebx
mov byte [edi + 0x174], 1
mov word [edi + 0x604], 0
cmp eax, ebx
je 0x4163d2
cmp byte [eax], bl
je 0x4163d2
cmp dword [0x4ad1f0], ebx
jne 0x4161f7
call fcn.0046f9c0
mov dword [0x4ad1f0], eax
cmp eax, ebx
je 0x416243
mov ecx, dword [0x4ad1f4]
cmp dword [ecx + 8], 0x14
jae 0x416215
call fcn.0046f9c0
mov ecx, dword [0x4ad1f4]
mov dword [ecx + 0xc], eax
cmp eax, ebx
je 0x416243
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xffffffec
lea edx, [eax + 0x14]
mov dword [0x4ad1f8], eax
mov dword [ecx + 4], edx
cmp eax, ebx
je 0x416243
mov dword [eax], vtable.Label.0
mov dword [eax + 4], 0x499869
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x416245
xor eax, eax
mov dword [edi + 0x374], eax
cmp eax, ebx
je 0x4163d2
mov ecx, 0x49bf84
cmp byte [0x4ab24f], bl
jne 0x416266
mov ecx, dword [edi + 0x5ec]
push edi
call fcn.00416520
cmp eax, 1
jne 0x4163d2
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.0041c010
test eax, eax
je 0x4163d2
mov eax, dword [edi]
push edi
call fcn.00421660
test eax, eax
je 0x4163d2
mov eax, dword [edi]
mov esi, edi
call fcn.00421720
cmp dword [edi + 8], ebx
je 0x4162bb
mov ecx, dword [edi]
mov eax, dword [edi + 0xc]
mov dword [eax + 0x14], ecx
mov edx, dword [edi]
mov eax, dword [edi + 0xc]
mov dword [edx + 0x10], eax
mov ecx, dword [edi + 8]
mov dword [edi], ecx
cmp dword [edi + 0x1c], ebx
jle 0x4162f4
mov edx, dword [edi + 0x18]
mov ebp, dword [edx + ebx*4]
cmp byte [ebp + 0x3d], 0
jne 0x4162ec
test byte [ebp + 0x3c], 4
jne 0x4162ec
mov eax, dword [ebp + 0x1c]
push ebp
lea esi, [ebp + 0x28]
push edi
call fcn.0042e020
mov eax, dword [ebp + 0x20]
push ebp
lea esi, [ebp + 0x30]
push edi
call fcn.0042e020
inc ebx
cmp ebx, dword [edi + 0x1c]
jl 0x4162c0
xor ebx, ebx
cmp dword [edi + 0x160], ebx
je 0x41631d
call fcn.0041f170
test eax, eax
je 0x4163d2
mov eax, dword [edi + 0x160]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x160], ebx
cmp dword [0x4ab378], ebx
je 0x41632b
push edi
call fcn.0042e0d0
mov eax, dword [0x4abb34]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
inc dword [edi + 0x170]
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.0041c010
test eax, eax
je 0x4163d2
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.0041c010
test eax, eax
je 0x4163d2
mov ecx, dword [edi + 0x374]
mov edx, dword [edi + 4]
push ebx
push ebx
mov dword [ecx + 8], edx
mov eax, dword [edi]
push ebx
push eax
mov ecx, edi
call fcn.00421780
test eax, eax
je 0x4163d2
mov ecx, dword [edi]
push ecx
push edi
call fcn.00421aa0
test eax, eax
je 0x4163d2
push 3
push ebx
push str.ErrorLevel
mov ecx, edi
call fcn.00420c70
mov dword [0x4aba2c], eax
cmp eax, ebx
je 0x4163d2
push 1
push ebx
push 0xffffffffffffffff
push 0x4998b4
push eax
call fcn.00475240
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x10]
call fcn.00412840
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret