Function at 0x487770
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579c58
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5b107c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
xor edx, edx
mov eax, ecx
div dword [0x67ddb8]
mov eax, dword [0x67ddbc]
mov edi, dword [ebp + 8]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x487a56
cmp dword [eax], ecx
je 0x4877d1
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4877c1
jmp 0x487a56
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x487a56
mov eax, 0x11
lea ecx, [edi + 0x546]
cmp dword [ecx], 1
ja 0x487a56
inc eax
add ecx, 4
cmp eax, 0x16
jle 0x4877e7
cmp word [ebx + 0x76], 0xa
jb 0x487a56
mov eax, edi
call fcn.0049a390
mov esi, eax
call fcn.005380d0
xor esi, esi
cmp eax, esi
je 0x487a56
movzx ecx, word [ebx + 0x76]
lea edx, [ecx - 0xa]
shl edx, 5
add edx, eax
lea ecx, [ecx + edx - 8]
cmp ecx, esi
je 0x487a56
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], al
push ecx
cmp byte [edi + 0x428], al
jne 0x487865
push str.m__s
lea eax, [ebp - 0x34]
push eax
jmp 0x48786e
push str.w__s
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 0x98
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x48789c
push eax
call fcn.00549be0
mov esi, eax
mov dword [ebp - 0x38], esi
jmp 0x48789f
mov dword [ebp - 0x38], esi
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x2c], edi
cmp dword [esi + 0x14], edi
jne 0x4878b7
mov dword [esi + 0x24], 1
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x10], edi
mov edi, 6
mov byte [esi + 0x28], 0
cmp dword [0x6573f0], edi
je 0x4878ea
mov ecx, dword [0x6573c0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], edi
mov eax, dword [0x65fadc]
mov edx, dword [eax]
mov edx, dword [edx + 0x188]
lea ecx, [ebp - 0x34]
push ecx
push eax
call edx
push esi
xor ecx, ecx
lea ebx, [ebp - 0x34]
call fcn.0054af90
mov edi, eax
mov dword [esi + 0x14], edi
test edi, edi
jne 0x487970
push 0x5948e0
push str.._Log_MissedObjectList.txt
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x487947
mov eax, ebx
push eax
push 0x596998
push edi
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp dword [0x6573f0], 0
je 0x487a48
mov ecx, dword [0x6573a8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0
jmp 0x487a48
lea ebx, [ebp - 0x34]
call fcn.00549110
test eax, eax
je 0x487980
mov ebx, eax
jmp 0x4879cd
mov eax, dword [0x65fadc]
mov edx, dword [eax]
push 0
push edi
push eax
mov eax, dword [edx + 0x4c]
call eax
push 8
mov edi, eax
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4879bb
mov ecx, edi
mov esi, eax
call fcn.00548f40
mov esi, dword [ebp - 0x38]
mov ebx, eax
jmp 0x4879bd
xor ebx, ebx
push ebx
lea edi, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00549190
mov dword [esi + 0x3c], ebx
cmp dword [0x6573f0], 0
je 0x4879f0
mov ecx, dword [0x6573a8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0
cmp dword [esi + 0x24], 0xffffffff
jne 0x487a05
push 1
mov ecx, 1
call fcn.0054a4a0
mov esi, dword [ebp - 0x38]
cmp dword [esi + 0x14], 0
je 0x487a48
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 [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
push eax
mov edi, esi
call fcn.0054ad10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005762ee
mov esp, ebp
pop ebp
ret 8