Function at 0x4cc311
Capabilities:
Set current directory

Disassembly:
mov eax, 0x5e8ead
call fcn.00594e8c
sub esp, 0x3c
mov dword [ebp - 0x40], ecx
mov ecx, dword [0x68385c]
add ecx, 0x80bbc
call fcn.00517034
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x20]
call fcn.005bee57
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0040b0ee
mov byte [ebp - 4], 1
push dword [0x65a920]
mov eax, dword [0x68385c]
push dword [eax + 0x80bbc]
push str._sMacros_s_tools3.dat
lea eax, [ebp - 0x24]
push eax
call fcn.0040ad5c
add esp, 0x10
push 0
push 0x1001
lea ecx, [ebp - 0x24]
call fcn.00517034
push eax
lea ecx, [ebp - 0x20]
call fcn.005bf19f
test eax, eax
jne 0x4cc3ac
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0040b121
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.005bee96
jmp 0x4cc58d
push 0x48
call fcn.005b955b
pop ecx
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 0
je 0x4cc3db
push 0
push 0x1000
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.005c2933
mov dword [ebp - 0x44], eax
jmp 0x4cc3df
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x28], 0
jmp 0x4cc3fc
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xff
jge 0x4cc50a
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + eax + 0x18]
push eax
push dword [ebp - 0x10]
call fcn.0046d2c9
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
fld qword [ecx + eax + 0x10]
push ecx
push ecx
fstp qword [esp]
mov ecx, dword [ebp - 0x10]
call fcn.004295f3
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
fld qword [ecx + eax + 8]
push ecx
push ecx
fstp qword [esp]
mov ecx, dword [ebp - 0x10]
call fcn.004295f3
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
fld qword [ecx + eax + 0x48]
push ecx
push ecx
fstp qword [esp]
mov ecx, dword [ebp - 0x10]
call fcn.004295f3
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
mov ax, word [ecx + eax]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004cc89c
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
fld qword [ecx + eax + 0x40]
push ecx
push ecx
fstp qword [esp]
mov ecx, dword [ebp - 0x10]
call fcn.004295f3
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
fld qword [ecx + eax + 0x20]
push ecx
push ecx
fstp qword [esp]
mov ecx, dword [ebp - 0x10]
call fcn.004295f3
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
fld qword [ecx + eax + 0x30]
push ecx
push ecx
fstp qword [esp]
mov ecx, dword [ebp - 0x10]
call fcn.004295f3
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
fld qword [ecx + eax + 0x28]
push ecx
push ecx
fstp qword [esp]
mov ecx, dword [ebp - 0x10]
call fcn.004295f3
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
fld qword [ecx + eax + 0x38]
push ecx
push ecx
fstp qword [esp]
mov ecx, dword [ebp - 0x10]
call fcn.004295f3
jmp 0x4cc3f5
and dword [ebp - 0x2c], 0
jmp 0x4cc517
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xff
jge 0x4cc538
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x40]
mov al, byte [ecx + eax + 0x54]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0046ce64
jmp 0x4cc510
mov ecx, dword [ebp - 0x10]
call fcn.005c239a
mov ecx, dword [ebp - 0x10]
call fcn.005c26ca
lea ecx, [ebp - 0x20]
call fcn.005bedf5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4cc571
push 1
mov ecx, dword [ebp - 0x38]
call fcn.0040abee
mov dword [ebp - 0x48], eax
jmp 0x4cc575
and dword [ebp - 0x48], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0040b121
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.005bee96
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret