Function at 0x417560
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 0x4177a0
cmp byte [eax], bl
je 0x4177a0
cmp dword [0x4ad228], ebx
jne 0x4175a4
call fcn.00471640
mov dword [0x4ad228], eax
cmp eax, ebx
je 0x4175f0
mov ecx, dword [0x4ad22c]
cmp dword [ecx + 8], 0x14
jae 0x4175c2
call fcn.00471640
mov ecx, dword [0x4ad22c]
mov dword [ecx + 0xc], eax
cmp eax, ebx
je 0x4175f0
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xffffffec
lea edx, [eax + 0x14]
mov dword [0x4ad230], eax
mov dword [ecx + 4], edx
cmp eax, ebx
je 0x4175f0
mov dword [eax], vtable.Label.0
mov dword [eax + 4], 0x49a8bd
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x4175f2
xor eax, eax
mov dword [edi + 0x378], eax
cmp eax, ebx
je 0x4177a0
mov eax, 0x49d244
cmp byte [0x4ac429], bl
jne 0x417613
mov eax, dword [edi + 0x600]
push eax
mov ecx, edi
call fcn.004179c0
mov ebp, 1
cmp eax, ebp
jne 0x4177a0
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.0041dc20
test eax, eax
je 0x4177a0
mov eax, dword [edi + 4]
mov dword [eax + 0xc], ebp
mov eax, dword [edi]
push edi
call fcn.00423270
test eax, eax
je 0x4177a0
mov eax, dword [edi]
mov esi, edi
call fcn.00423330
cmp dword [edi + 8], ebx
je 0x417674
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
cmp dword [edi + 0x1c], ebx
jle 0x4176b7
lea esp, [esp]
mov eax, dword [edi + 0x18]
mov ebp, dword [eax + ebx*4]
cmp byte [ebp + 0x3d], 0
jne 0x4176ac
test byte [ebp + 0x3c], 4
jne 0x4176ac
mov eax, dword [ebp + 0x1c]
push ebp
lea esi, [ebp + 0x28]
push edi
call fcn.0042ff50
mov eax, dword [ebp + 0x20]
push ebp
lea esi, [ebp + 0x30]
push edi
call fcn.0042ff50
inc ebx
cmp ebx, dword [edi + 0x1c]
jl 0x417680
xor ebx, ebx
lea ebp, [ebx + 1]
cmp dword [edi + 0x164], ebx
je 0x4176e2
mov esi, edi
call fcn.00420c90
test eax, eax
je 0x4177a0
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 [0x4ac43c], ebx
je 0x4176f0
push edi
call fcn.00430000
mov eax, dword [0x4acafc]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add dword [edi + 0x174], ebp
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.0041dc20
test eax, eax
je 0x4177a0
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.0041dc20
test eax, eax
je 0x4177a0
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 0x10]
mov dword [edx + 0xc], ebp
mov eax, dword [edi + 4]
mov dword [eax + 0xc], ebp
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.00423390
test eax, eax
je 0x4177a0
mov eax, dword [edi]
push edi
call fcn.004237b0
test eax, eax
je 0x4177a0
push 3
push ebx
push str.ErrorLevel
mov ecx, edi
call fcn.00422880
mov dword [0x4acaf4], eax
cmp eax, ebx
je 0x4177a0
push ebp
push ebx
push 0xffffffffffffffff
push 0x49a8d8
push eax
call fcn.00477130
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x10]
call fcn.00413eb0
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret