Function at 0x485310
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b107c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x284]
mov edx, dword [eax + 4]
push esi
push edi
lea edi, [ebx + 0x284]
mov ecx, edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], edi
call edx
movzx esi, word [ebx + 0x360]
call fcn.0052fb80
movzx ecx, word [ebx + 0x362]
shl ecx, 5
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x18], eax
lea esi, [ecx + eax - 2]
mov dword [edi + 0x2c], 0
jne 0x48536f
mov dword [edi + 0x24], 1
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov eax, 7
mov byte [edi + 0x28], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], ebx
mov dword [ebx + 4], eax
cmp dword [0x6573f0], eax
je 0x4853ad
mov ecx, dword [0x6573c4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 7
mov eax, dword [0x65fadc]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x188]
call eax
push edi
xor ecx, ecx
mov ebx, esi
call fcn.0054af90
mov dword [ebp - 0x20], eax
mov dword [edi + 0x14], eax
test eax, eax
jne 0x48542e
push 0x5948e0
push str.._Log_MissedObjectList.txt
call dword [sym.imp.MSVCR100.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x485405
push esi
push 0x596998
push ebx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
push ebx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp dword [0x6573f0], 0
je 0x4854be
mov ecx, dword [0x6573a8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0
jmp 0x4854be
call fcn.00549110
test eax, eax
jne 0x485444
mov edx, dword [ebp - 0x20]
mov edi, esi
call fcn.00549280
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0x3c], eax
cmp dword [0x6573f0], 0
je 0x485467
mov edx, dword [0x6573a8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0
cmp dword [edi + 0x24], 0xffffffff
jne 0x48547b
push 1
mov ecx, 1
mov esi, edi
call fcn.0054a4a0
cmp dword [edi + 0x14], 0
je 0x4854be
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x3c]
call fcn.00548ff0
mov ecx, dword [0x65fadc]
mov dword [edi + 0x38], eax
movzx eax, word [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edi + 0x14]
push eax
push ecx
mov ecx, dword [edx + 0x44]
call ecx
mov ecx, dword [edi + 0x38]
movzx ecx, word [ecx + 2]
mov eax, dword [0x65fadc]
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
push ecx
mov ecx, dword [edi + 0x14]
push ecx
push eax
call edx
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
lea ecx, [esi + 0x14c]
push ecx
mov ecx, esi
call edx
mov eax, dword [edi + 0x14]
mov ebx, 1
test eax, eax
je 0x4854fe
cmp dword [0x65fae8], 0
mov dword [edi + 0xc], ebx
jne 0x4854fe
mov ecx, dword [0x65fadc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x98]
push ecx
call eax
fld dword [esi + 0x24c]
mov edx, dword [esi]
fdiv qword [0x598de0]
mov eax, dword [edx + 0x8c]
push ecx
mov ecx, esi
fmul qword [0x598dd8]
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
fstp dword [esp]
call eax
cmp dword [edi + 0x14], 0
je 0x485577
cmp dword [edi + 0x24], ebx
je 0x485574
mov edx, dword [edi + 0x3c]
mov ecx, ebx
mov dword [edi + 0x24], ebx
call fcn.00548ff0
mov ecx, dword [0x65fadc]
mov dword [edi + 0x38], eax
movzx eax, word [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edi + 0x14]
push eax
push ecx
mov ecx, dword [edx + 0x44]
call ecx
mov ecx, dword [edi + 0x38]
movzx ecx, word [ecx + 2]
mov eax, dword [0x65fadc]
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
push ecx
mov ecx, dword [edi + 0x14]
push ecx
push eax
call edx
mov byte [edi + 0x28], 0
mov dword [edi + 0x1c], ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov ebx, dword [0x681f70]
xor edx, edx
mov eax, ecx
div dword [ebx + 4]
mov eax, dword [ebx + 8]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x48559f
cmp dword [edx], ecx
je 0x4855e9
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x485594
xor edx, edx
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x280], edx
fld dword [ecx + 0x80]
mov edi, dword [edi + 0x14]
fstp dword [ebp - 8]
fld dword [ebp - 8]
fst dword [ebp - 0xc]
fstp dword [ebp - 0x10]
test edi, edi
je 0x4855d8
mov eax, dword [0x65fadc]
mov edx, dword [eax]
mov edx, dword [edx + 0x8c]
lea ecx, [ebp - 0x10]
push ecx
push edi
push eax
call edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005762ee
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 4]
jmp 0x4855a1