Function at 0x485680
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5b107c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x284]
lea esi, [edi + 0x284]
mov ebx, edx
mov edx, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x14], edi
call edx
cmp dword [esi + 0x14], 0
mov dword [esi + 0x2c], 0
jne 0x4856c1
mov dword [esi + 0x24], 1
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov byte [esi + 0x28], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x10], edi
mov dword [edi + 4], 9
cmp dword [0x6573f0], 0xe
je 0x4856fe
mov eax, dword [0x6573e0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0xe
mov eax, dword [0x65fadc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x188]
push ebx
push eax
call edx
push esi
xor ecx, ecx
call fcn.0054af90
mov dword [ebp - 0x18], eax
mov dword [esi + 0x14], eax
test eax, eax
jne 0x485781
push 0x5948e0
push str.._Log_MissedObjectList.txt
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x485758
push ebx
push 0x596998
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp dword [0x6573f0], 0
je 0x485812
mov ecx, dword [0x6573a8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0
jmp 0x485812
call fcn.00549110
test eax, eax
jne 0x485797
mov edx, dword [ebp - 0x18]
mov edi, ebx
call fcn.00549280
mov edi, dword [ebp - 0x14]
mov dword [esi + 0x3c], eax
cmp dword [0x6573f0], 0
je 0x4857ba
mov edx, dword [0x6573a8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0
cmp dword [esi + 0x24], 0xffffffff
jne 0x4857cf
push 1
mov ecx, 1
call fcn.0054a4a0
mov edi, dword [ebp - 0x14]
cmp dword [esi + 0x14], 0
je 0x485812
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x3c]
call fcn.00548ff0
mov ecx, dword [0x65fadc]
mov dword [esi + 0x38], eax
movzx eax, word [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [esi + 0x14]
push eax
push ecx
mov ecx, dword [edx + 0x44]
call ecx
mov ecx, dword [esi + 0x38]
movzx ecx, word [ecx + 2]
mov eax, dword [0x65fadc]
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
push ecx
mov ecx, dword [esi + 0x14]
push ecx
push eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x84]
lea ecx, [edi + 0x14c]
push ecx
mov ecx, edi
call edx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48584e
cmp dword [0x65fae8], 0
mov dword [esi + 0xc], 1
jne 0x48584e
mov ecx, dword [0x65fadc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x98]
push ecx
call eax
fld dword [edi + 0x24c]
mov edx, dword [edi]
fdiv qword [0x598de0]
mov eax, dword [edx + 0x8c]
push ecx
mov ecx, edi
fmul qword [0x598dd8]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x18]
fstp dword [esp]
call eax
fld dword [ebp + 8]
mov esi, dword [esi + 0x14]
fst dword [ebp - 8]
fst dword [ebp - 0xc]
fstp dword [ebp - 0x10]
test esi, esi
je 0x48589e
mov eax, dword [0x65fadc]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push esi
push eax
mov eax, dword [ecx + 0x8c]
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005762ee
mov esp, ebp
pop ebp
ret 4