Function at 0x582ff0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x5863c0
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x58306e
mov dword [ebp - 0x20], eax
add eax, 3
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x30], eax
push eax
call fcn.0071997b
add esp, 4
mov dword [ebp - 0x24], eax
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x24]
call fcn.007311f0
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x18], 0x10
jb 0x5830d5
mov ebx, dword [ebx + 4]
jmp 0x5830d8
mov eax, esi
test al, 1
jne 0x583118
call fcn.00586df0
mov esi, eax
mov edi, dword [eax + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x58352e
mov esi, dword [esi + 4]
lea eax, [ebx + 4]
cmp edi, 0xf
jbe 0x58353d
mov dword [ebp - 0x24], eax
mov eax, edi
or eax, 0xf
test edi, edi
mov ebx, 0x7fffffff
cmovns ebx, eax
cmp ebx, 0xfff
jb 0x58356f
lea eax, [ebx + 0x24]
push eax
call fcn.0071993d
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x58357b
add ebx, 4
mov esi, dword [ebp - 0x20]
push esi
push ebx
push dword [ebp - 0x24]
call fcn.00731570
add esp, 0xc
mov eax, dword [ebp + 0x10]
test al, 2
jne 0x58310c
push esi
push 0x20
push ebx
call fcn.007332c0
add esp, 0xc
test eax, eax
sete cl
sub eax, ebx
cmp eax, 0xffffffff
sete al
or al, cl
je 0x583142
mov dword [ebp - 0x38], 0
mov esi, dword [ebp - 0x24]
jmp 0x583150
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], 6
mov dword [ebx + 4], 0x6e6f6e3c
mov word [ebx + 8], 0x3e65
mov byte [ebx + 0xa], 0
mov dword [ebx], 0x751360
jmp 0x58359f
mov eax, dword [ebp - 0x24]
lea esi, [eax + 1]
mov byte [eax], 0x22
mov al, 1
mov dword [ebp - 0x38], eax
movsx eax, byte [ebx]
cmp eax, 0x2f
sete cl
mov dword [ebp - 0x2c], ebx
movzx edx, byte [ebx + 1]
mov ch, al
xor ch, 0x5c
mov dh, dl
xor dh, 0x5c
or dh, ch
sete bl
or bl, cl
cmp dl, 0x3a
jne 0x583183
push eax
call fcn.00703909
add esp, 4
mov edx, eax
jmp 0x583185
xor edx, edx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x58], 0x752c30
test cl, 1
sete al
or bl, al
mov dword [ebp - 0x34], edx
je 0x5831c1
mov dword [ebp - 0x28], 0
mov ebx, dword [ebp - 0x2c]
test dl, dl
jne 0x58321b
jmp 0x583241
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x58]
call fcn.00583690
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x40]
lea edx, [eax + 1]
cmp ecx, 0x10
lea esi, [ebp - 0x53]
cmovae esi, edx
cmp byte [esi], 0x3a
mov ebx, dword [ebp - 0x2c]
jne 0x583207
cmp ecx, 0x10
lea ecx, [ebp - 0x54]
cmovb eax, ecx
movsx eax, byte [eax]
push eax
call fcn.00703909
add esp, 4
mov dword [ebp - 0x28], eax
jmp 0x58320e
mov dword [ebp - 0x28], 0
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
test dl, dl
je 0x583241
test cl, 1
je 0x583225
cmp dl, byte [ebp - 0x28]
je 0x583241
movsx eax, byte [ebx]
push eax
mov edi, edx
call fcn.00703909
mov edx, edi
mov ecx, dword [ebp + 0x10]
add esp, 4
mov byte [esi], al
mov byte [esi + 1], 0x3a
add esi, 2
xor eax, eax
test cl, 1
mov dword [ebp - 0x20], esi
je 0x58327e
cmp dl, byte [ebp - 0x28]
je 0x58327e
mov byte [ebp - 0x78], dl
mov word [ebp - 0x77], 0x3a
mov dword [ebp - 0x10], 3
lea eax, [ebp - 0x78]
push eax
call dword [0x834144]
lea ecx, [ebp - 0x58]
call fcn.00583690
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
xor eax, eax
test dl, dl
setne al
lea ebx, [ebx + eax*2]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x58336e
mov ecx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x40]
lea edx, [ecx + 1]
cmp esi, 0x10
lea edi, [ebp - 0x53]
cmovae edi, edx
cmp byte [edi], 0x3a
jne 0x5832db
cmp eax, 2
mov edx, 2
cmovb edx, eax
cmp esi, 0x10
lea esi, [ebp - 0x54]
cmovae esi, ecx
sub eax, edx
mov dword [ebp - 0x44], eax
inc eax
add edx, esi
push eax
push edx
push esi
call fcn.00731570
add esp, 0xc
mov dword [ebp - 0x10], 4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x78], 0x751360
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x78]
push eax
mov dword [ebp - 0x28], ebx
push ebx
call fcn.00587670
mov dword [ebp - 0x10], 5
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x78]
push eax
call fcn.00512a20
test eax, eax
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
je 0x583516
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x58336e
mov ecx, dword [ebp - 0x74]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x583364
mov dword [ebp - 0x28], ebx
mov ebx, esi
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x5835c0
add eax, 0x24
mov edx, eax
mov ecx, esi
mov esi, ebx
mov ebx, dword [ebp - 0x28]
push edx
push ecx
call fcn.0071996d
add esp, 8
mov eax, dword [ebp + 0xc]
test eax, eax
mov edi, 0x7fffffff
cmovne edi, eax
push ebx
call fcn.00700090
add esp, 4
mov dword [ebp - 0x34], edi
cmp eax, edi
jle 0x583406
mov ecx, eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x7c], eax
xor eax, eax
cmp ecx, dword [ebp - 0x34]
jle 0x583412
mov dword [ebp - 0x5c], ecx
xor edi, edi
nop word cs:[eax + eax]
movzx ecx, byte [ebx + edi + 1]
test ecx, ecx
je 0x58340b
inc edi
cmp ecx, 0x5c
jne 0x5833b0
mov dword [ebp - 0x80], edi
test al, 1
jne 0x5833f3
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x7c]
sub eax, esi
mov dword [ebp - 0x10], 3
push 0x7d795f
push eax
mov dword [ebp - 0x20], esi
push esi
call fcn.00703939
add esp, 0xc
mov esi, dword [ebp - 0x20]
add esi, 4
mov edx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x80]
add ebx, eax
sub ecx, eax
mov al, 1
cmp ecx, dword [ebp - 0x34]
jg 0x58339f
jmp 0x583412
mov edx, dword [ebp - 0x30]
jmp 0x583412
mov dword [ebp - 0x10], 3
add edx, dword [ebp - 0x24]
sub edx, esi
mov dword [ebp - 0x10], 3
push ebx
push edx
mov dword [ebp - 0x20], esi
push esi
call fcn.00703939
add esp, 0xc
mov esi, dword [ebp - 0x20]
push esi
call fcn.00700090
add esp, 4
mov ecx, dword [ebp - 0x2c]
test cl, cl
je 0x58345b
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x78], cl
mov word [ebp - 0x77], 0x3a
lea eax, [ebp - 0x78]
push eax
call dword [0x834144]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
add esi, eax
cmp byte [ebp - 0x38], 0
je 0x583467
mov byte [esi], 0x22
inc esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x24]
mov byte [esi], 0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x5834a8
mov ecx, dword [ebp - 0x54]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x58349e
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x5835b4
add eax, 0x24
mov edx, eax
mov ecx, esi
push edx
push ecx
call fcn.0071996d
add esp, 8
lea esi, [ebx + 4]
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0xf
mov byte [ebx + 4], 0
push edi
call fcn.00700090
add esp, 4
cmp eax, 0xf
jbe 0x5834ed
mov dword [ebp - 0x10], 0xffffffff
sub esp, 0xc
movzx ecx, byte [ebp - 0x58]
mov byte [esp + 4], cl
mov dword [esp + 8], edi
mov dword [esp], eax
mov ecx, esi
call fcn.0045afa0
jmp 0x583502
mov dword [ebx + 0x14], eax
push eax
push edi
push esi
mov esi, eax
call fcn.00731570
add esp, 0xc
mov byte [ebx + esi + 4], 0
mov dword [ebx], 0x751360
push edi
call fcn.00719984
add esp, 4
jmp 0x58359f
mov eax, dword [ebp - 0x44]
movzx ecx, byte [ebx + eax]
test ecx, ecx
je 0x58354a
cmp ecx, 0x5c
jne 0x583556
add ebx, eax
inc ebx
jmp 0x58332c
add esi, 4
lea eax, [ebx + 4]
cmp edi, 0xf
ja 0x58309b
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
mov ebx, 0xf
jmp 0x58358e
mov byte [esi], 0x2e
inc esi
add ebx, dword [ebp - 0x44]
jmp 0x58332c
cmp eax, 1
sete al
cmp byte [ebp - 0x2c], 0
sete cl
and cl, al
movzx eax, cl
add ebx, eax
jmp 0x58332c
lea eax, [ebx + 1]
push eax
call fcn.0071993d
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
lea ecx, [edi + 1]
push ecx
push esi
push eax
call fcn.00731570
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], ebx
mov ebx, eax
mov dword [eax], 0x751360
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov dword [ebp - 0x10], 1
call fcn.006fce21
mov dword [ebp - 0x10], 0
call fcn.006fce21
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.007311e0
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.007311e0
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
lea ecx, [ebp - 0x58]
call fcn.004425f0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
add esp, 0xc
pop ebp
ret