Function at 0x415a60
Capabilities:
Set current directory

Disassembly:
mov eax, dword [edi + 0xa90]
sub esp, 0x18
push ebx
push ebp
push esi
xor esi, esi
mov byte [edi + 0x274], 1
mov word [edi + 0xaa8], 0
cmp eax, esi
je 0x415d79
cmp word [eax], si
je 0x415d79
cmp dword [0x4c7040], esi
jne 0x415aa5
call fcn.004706f0
mov dword [0x4c7040], eax
cmp eax, esi
je 0x415aea
mov ecx, dword [0x4c7044]
cmp dword [ecx + 8], 0x10
jae 0x415ac3
call fcn.004706f0
mov ecx, dword [0x4c7044]
mov dword [ecx + 0xc], eax
cmp eax, esi
je 0x415aea
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xfffffff0
lea edx, [eax + 0x10]
mov dword [0x4c7048], eax
mov dword [ecx + 4], edx
cmp eax, esi
je 0x415aea
mov dword [eax], 0x4a9e04
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
jmp 0x415aec
xor eax, eax
mov dword [edi + 0x634], eax
cmp eax, esi
je 0x415d79
cmp byte [0x4c5093], 0
mov eax, 0x4a31d0
jne 0x415b0e
mov eax, dword [edi + 0xa90]
push eax
push edi
call fcn.00415ef0
cmp eax, 1
jne 0x415d79
push esi
push esi
push esi
push 0x67
push edi
call fcn.0041c210
test eax, eax
je 0x415d79
xor ebx, ebx
mov dword [esp + 0x10], esi
xor ebp, ebp
lea esp, [esp]
cmp ebp, dword [0x4c50f4]
jge 0x415b7c
jmp 0x415b50
mov eax, dword [0x4c50f0]
mov esi, dword [eax + ebp*4]
push 0
push 0
push esi
mov ecx, edi
call fcn.00423b00
test eax, eax
je 0x415d79
inc ebp
mov byte [esi], 0x11
cmp ebp, dword [0x4c50f4]
jl 0x415b50
mov esi, dword [esp + 0x10]
cmp esi, dword [edi + 0xc]
je 0x415baa
test esi, esi
je 0x415b8a
mov eax, dword [esi + 0x14]
jmp 0x415b8d
mov eax, dword [edi + 8]
push 0
push 0
push eax
mov ecx, edi
call fcn.00423b00
test eax, eax
je 0x415d79
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x10], ecx
mov esi, ecx
cmp ebx, dword [edi + 4]
je 0x415bd6
test ebx, ebx
je 0x415bb8
mov eax, dword [ebx + 0x14]
jmp 0x415bba
mov eax, dword [edi]
push 0
push 0
push eax
mov ecx, edi
call fcn.00423b00
test eax, eax
je 0x415d79
mov ebx, dword [edi + 4]
jmp 0x415b40
cmp dword [edi + 8], 0
je 0x415bf1
mov eax, dword [edi]
mov edx, dword [edi + 0xc]
mov dword [edx + 0x14], eax
mov ecx, dword [edi]
mov edx, dword [edi + 0xc]
mov dword [ecx + 0x10], edx
mov eax, dword [edi + 8]
mov dword [edi], eax
xor ebx, ebx
cmp dword [edi + 0x1c], ebx
jle 0x415c2c
jmp 0x415c00
mov ecx, dword [edi + 0x18]
mov ebp, dword [ecx + ebx*4]
cmp byte [ebp + 0x3d], 0
jne 0x415c26
mov eax, dword [ebp + 0x1c]
push ebp
lea esi, [ebp + 0x28]
push edi
call fcn.00430470
mov eax, dword [ebp + 0x20]
push ebp
lea esi, [ebp + 0x30]
push edi
call fcn.00430470
inc ebx
cmp ebx, dword [edi + 0x1c]
jl 0x415c00
mov eax, dword [edi + 0x260]
test eax, eax
je 0x415caa
cmp dword [eax + 0x10], 0
je 0x415c92
mov eax, dword [eax + 0xc]
mov esi, dword [eax]
mov ebp, dword [eax + 8]
test esi, esi
je 0x415c92
mov eax, str.__Class
lea ebx, [esp + 0x10]
call fcn.004130e0
test al, al
je 0x415c73
mov eax, dword [esp + 0x14]
mov edx, eax
mov dword [edi + 0x26c], eax
mov eax, dword [esp + 0x10]
sar edx, 0x1f
mov dword [edi + 0x270], eax
push ebp
push str.Unknown_class.
mov ecx, edi
mov dword [edi + 0x630], 0
call fcn.0042fd70
test eax, eax
je 0x415d79
mov eax, dword [edi + 0x260]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x260], 0
mov eax, dword [0x4c5980]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [edi + 0x270]
push 0
push 0
push 0
push 0x67
push edi
call fcn.0041c210
test eax, eax
je 0x415d79
push 0
push 0
push 0
push 0x67
push edi
call fcn.0041c210
test eax, eax
je 0x415d79
mov ecx, dword [edi + 0x634]
mov edx, dword [edi + 4]
push 0
mov dword [ecx + 4], edx
mov eax, dword [edi]
push 0
push eax
mov ecx, edi
call fcn.00423d50
test eax, eax
je 0x415d79
lea ecx, [esp + 0xf]
push ecx
push 3
lea edx, [esp + 0x18]
push edx
push 0
push 0x4a31d4
mov ecx, edi
call fcn.00420bc0
test eax, eax
jne 0x415d3f
cmp byte [esp + 0xf], al
mov ecx, dword [esp + 0x10]
setne al
mov edx, 0x4a31d4
inc eax
push eax
push ecx
push edi
xor ecx, ecx
call fcn.00420e60
mov dword [0x4c5774], eax
test eax, eax
je 0x415d79
push 1
push 0
push 0xffffffffffffffff
push 0x49f8e0
push eax
call fcn.00475ef0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x10]
call fcn.00412470
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret