Function at 0x4858c0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5b107c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x284]
mov dword [ebp - 0x1c], edi
add edi, 0x284
mov esi, edx
mov edx, dword [eax + 4]
mov ecx, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], edi
call edx
mov eax, dword [esi + 0x5ae]
test eax, eax
je 0x485b69
movzx ecx, ax
xor edx, edx
mov eax, ecx
div dword [0x67ddb8]
mov eax, dword [0x67ddbc]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x485b69
mov edi, edi
cmp dword [edx], ecx
je 0x48593e
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x485920
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005762ee
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edx + 4]
test edx, edx
je 0x485b69
cmp dword [ebp + 8], 1
jne 0x485955
movzx esi, word [edx + 0x7e]
jmp 0x485976
fld dword [edx + 0xb4]
fnstcw word [ebp - 0x16]
movzx eax, word [ebp - 0x16]
or eax, 0xc00
mov dword [ebp - 0x20], eax
fldcw word [ebp - 0x20]
fistp qword [ebp - 0x24]
mov esi, dword [ebp - 0x24]
fldcw word [ebp - 0x16]
call fcn.00536830
xor esi, esi
mov ebx, eax
mov dword [edi + 0x2c], esi
cmp dword [edi + 0x14], esi
jne 0x48598e
mov dword [edi + 0x24], 1
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov dword [edi + 0x18], esi
mov dword [edi + 0x10], esi
mov esi, 9
mov byte [edi + 0x28], 0
cmp dword [0x6573f0], esi
je 0x4859c1
mov ecx, dword [0x6573cc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], esi
mov eax, dword [0x65fadc]
mov edx, dword [eax]
push ebx
push eax
mov eax, dword [edx + 0x188]
call eax
push edi
xor ecx, ecx
call fcn.0054af90
mov esi, eax
mov dword [edi + 0x14], esi
test esi, esi
jne 0x485a3f
push 0x5948e0
push str.._Log_MissedObjectList.txt
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x485a16
push ebx
push 0x596998
push esi
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp dword [0x6573f0], 0
je 0x485ace
mov ecx, dword [0x6573a8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0
jmp 0x485ace
call fcn.00549110
test eax, eax
jne 0x485a54
mov edx, esi
mov edi, ebx
call fcn.00549280
mov edi, dword [ebp - 0x2c]
mov dword [edi + 0x3c], eax
cmp dword [0x6573f0], 0
je 0x485a77
mov edx, dword [0x6573a8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0
cmp dword [edi + 0x24], 0xffffffff
jne 0x485a8b
push 1
mov ecx, 1
mov esi, edi
call fcn.0054a4a0
cmp dword [edi + 0x14], 0
je 0x485ace
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 eax, dword [edi + 0x14]
test eax, eax
je 0x485af7
cmp dword [0x65fae8], 0
mov dword [edi + 0xc], 1
jne 0x485af7
mov ecx, dword [0x65fadc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x98]
push ecx
call eax
mov esi, dword [ebp - 0x28]
mov ecx, dword [esi + 0x14c]
mov eax, dword [esi + 0x154]
mov edx, dword [esi + 0x150]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
fld dword [ebp - 0x14]
fld qword [0x599090]
mov dword [ebp - 0xc], eax
fadd st(1), st(0)
mov dword [ebp - 0x10], edx
mov edx, dword [ebx]
fxch st(1)
mov edx, dword [edx + 0x84]
fstp dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
fadd dword [ebp - 0xc]
mov ecx, ebx
fstp dword [ebp - 0xc]
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
mov ebx, dword [ebx]
mov ecx, esi
call edx
mov eax, dword [ebx + 0x8c]
push ecx
mov ecx, dword [ebp - 0x1c]
fstp dword [esp]
call eax
push 1
mov ecx, 1
mov esi, edi
call fcn.0054a4a0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005762ee
mov esp, ebp
pop ebp
ret 4