Function at 0x4173a0
Capabilities:
Set current directory

Disassembly:
mov eax, dword [edi + 0x600]
sub esp, 0x10
push ebx
xor ebx, ebx
push ebp
push esi
mov byte [edi + 0x178], 1
mov word [edi + 0x618], 0
cmp eax, ebx
je 0x4175c3
cmp byte [eax], bl
je 0x4175c3
cmp dword [0x4ad204], ebx
jne 0x4173e4
call fcn.00471130
mov dword [0x4ad204], eax
cmp eax, ebx
je 0x417430
mov ecx, dword [0x4ad208]
cmp dword [ecx + 8], 0x14
jae 0x417402
call fcn.00471130
mov ecx, dword [0x4ad208]
mov dword [ecx + 0xc], eax
cmp eax, ebx
je 0x417430
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xffffffec
lea edx, [eax + 0x14]
mov dword [0x4ad20c], eax
mov dword [ecx + 4], edx
cmp eax, ebx
je 0x417430
mov dword [eax], vtable.Label.0
mov dword [eax + 4], 0x49a8ad
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x417432
xor eax, eax
mov dword [edi + 0x378], eax
cmp eax, ebx
je 0x4175c3
mov eax, 0x49d1d0
cmp byte [0x4ac409], bl
jne 0x417453
mov eax, dword [edi + 0x600]
push eax
mov ecx, edi
call fcn.004177e0
cmp eax, 1
jne 0x4175c3
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.0041d9d0
test eax, eax
je 0x4175c3
mov eax, dword [edi]
push edi
call fcn.00423020
test eax, eax
je 0x4175c3
mov eax, dword [edi]
mov esi, edi
call fcn.004230e0
cmp dword [edi + 8], ebx
je 0x4174aa
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 0x4174e4
nop
mov edx, dword [edi + 0x18]
mov ebp, dword [edx + ebx*4]
cmp byte [ebp + 0x3d], 0
jne 0x4174dc
test byte [ebp + 0x3c], 4
jne 0x4174dc
mov eax, dword [ebp + 0x1c]
push ebp
lea esi, [ebp + 0x28]
push edi
call fcn.0042fad0
mov eax, dword [ebp + 0x20]
push ebp
lea esi, [ebp + 0x30]
push edi
call fcn.0042fad0
inc ebx
cmp ebx, dword [edi + 0x1c]
jl 0x4174b0
xor ebx, ebx
cmp dword [edi + 0x164], ebx
je 0x41750f
mov esi, edi
call fcn.00420a40
test eax, eax
je 0x4175c3
mov eax, dword [edi + 0x164]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x164], ebx
cmp dword [0x4ac41c], ebx
je 0x41751d
push edi
call fcn.0042fb80
mov eax, dword [0x4acad8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
inc dword [edi + 0x174]
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.0041d9d0
test eax, eax
je 0x4175c3
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.0041d9d0
test eax, eax
je 0x4175c3
mov ecx, dword [edi + 0x378]
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.00423140
test eax, eax
je 0x4175c3
mov ecx, dword [edi]
push ecx
push edi
call fcn.00423560
test eax, eax
je 0x4175c3
push 3
push ebx
push str.ErrorLevel
mov ecx, edi
call fcn.00422630
mov dword [0x4acad0], eax
cmp eax, ebx
je 0x4175c3
push 1
push ebx
push 0xffffffffffffffff
push 0x49a8c8
push eax
call fcn.00476c10
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x10]
call fcn.00413d00
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret