Function at 0x482f00
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579e9c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5b107c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x48336a
cmp eax, 3
jge 0x482f56
mov edx, dword [esi + 0x14]
cmp dword [edx + eax*4 + 0x38], 0
jne 0x482f56
cmp eax, 1
jne 0x48336a
cmp eax, 6
jne 0x482f68
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x38], 0
je 0x48336a
xor edx, edx
mov eax, ecx
div dword [0x67ddb8]
mov eax, dword [0x67ddbc]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x48336a
cmp dword [eax], ecx
je 0x482f92
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x482f82
jmp 0x48336a
mov eax, dword [eax + 4]
test eax, eax
je 0x48336a
movzx edi, word [eax + 0x7c]
movzx ecx, word [eax + 0x7e]
mov dword [ebp - 0x14], ecx
cmp edi, 0xffffffff
je 0x48336a
mov cl, byte [esi]
cmp cl, 1
jne 0x482fbc
test edi, edi
je 0x482fed
cmp edi, 7
jne 0x482fe4
mov ebx, dword [ebp + 0xc]
test cl, cl
jne 0x482fd6
push str.NULLHAIR_M.MOD
push 0
call fcn.0054a570
jmp 0x482fed
push str.NULLHAIR_W.MOD
push 0
call fcn.0054a570
jmp 0x482fed
cmp edi, 6
jne 0x483234
mov edi, dword [esi + 0x14]
mov esi, dword [edi + 0x18]
test esi, esi
je 0x483019
mov ecx, 0x6980b0
call fcn.0056e550
test eax, eax
je 0x483019
cmp dword [eax + 2], 0
je 0x48336a
cmp dword [eax + 0x3a], 0
je 0x48336a
cmp dword [edi + 4], 0
jne 0x48336a
cmp dword [edi + 0xc], 0
jne 0x48336a
cmp dword [edi + 0x10], 0
jne 0x48336a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x59a], 0
jne 0x48336a
cmp dword [eax + 0x59e], 0
jne 0x48336a
cmp byte [eax + 0x4fe], 0
jne 0x48336a
push 0x98
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp eax, ecx
je 0x483088
push eax
call fcn.00549be0
mov esi, eax
mov dword [ebp - 0x10], esi
jmp 0x48308d
mov dword [ebp - 0x10], ecx
mov esi, ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ecx + edx*4]
xor edi, edi
mov dword [esi + 0x2c], edi
cmp dword [esi + 0x14], edi
jne 0x4830b4
mov dword [esi + 0x24], 1
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x10], edi
mov edi, 6
mov byte [esi + 0x28], 0
cmp dword [0x6573f0], edi
je 0x4830e6
mov eax, dword [0x6573c0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], edi
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 edi, eax
mov dword [esi + 0x14], edi
test edi, edi
jne 0x483163
push 0x5948e0
push str.._Log_MissedObjectList.txt
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x48313b
push ebx
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 0x4831f0
mov eax, dword [0x6573a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0
jmp 0x4831f0
call fcn.00549110
test eax, eax
jne 0x483175
mov edx, edi
mov edi, ebx
call fcn.00549280
mov dword [esi + 0x3c], eax
cmp dword [0x6573f0], 0
je 0x483198
mov ecx, dword [0x6573a8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0
cmp dword [esi + 0x24], 0xffffffff
jne 0x4831ad
push 1
mov ecx, 1
call fcn.0054a4a0
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x14], 0
je 0x4831f0
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 + 0xc]
push eax
mov ebx, str.Bip01_Head
mov edi, esi
call fcn.0054ad60
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 0x453]
test al, al
jne 0x483217
mov eax, dword [ebp - 0x10]
xor esi, esi
jmp 0x483365
cmp al, 0x40
je 0x48322c
cmp al, 0x41
je 0x48322c
mov eax, dword [ebp - 0x10]
mov esi, 2
jmp 0x483365
mov eax, dword [ebp - 0x10]
jmp 0x483360
cmp edi, 3
jne 0x483288
mov edx, dword [esi + 0x14]
mov ecx, dword [edx + 0x48]
cmp ecx, 1
jbe 0x48326d
cmp word [eax + 0x38], 0
jbe 0x48326d
mov esi, ecx
mov ecx, 0x67dd88
call fcn.004af570
test eax, eax
je 0x48336a
movzx edi, word [eax + 0x7c]
movzx eax, word [eax + 0x7e]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx + eax*4]
mov ebx, dword [ebp + 0xc]
push ecx
push edi
call fcn.0054a570
jmp 0x48336a
cmp edi, 5
je 0x48336a
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 0x18]
test eax, eax
je 0x483348
mov esi, eax
mov ecx, 0x6980b0
call fcn.0056e550
mov esi, eax
test esi, esi
je 0x483345
cmp dword [esi + 0x2e], 0
mov ebx, dword [ebp + 0xc]
jne 0x4832ca
push str.NULL.MOD
push 3
call fcn.0054a570
cmp dword [esi + 0x26], 0
jne 0x4832dc
push str.NULL.MOD
push 4
call fcn.0054a570
cmp edi, 4
jne 0x483340
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x14]
cmp dword [ecx + 0x24], 0
je 0x48331a
mov edx, dword [ebp + 8]
cmp dword [edx + 0x5aa], 0
jne 0x48331a
mov esi, eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5a2], 0
jne 0x48331a
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx + eax*4]
push ecx
push edi
call fcn.0054a570
mov edx, dword [ebp + 8]
mov al, byte [edx + 0x453]
test al, al
jne 0x48334d
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x48336a
mov eax, dword [0x65fadc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x58]
push 0
push ebx
push eax
call edx
jmp 0x48336a
mov esi, dword [ebp + 0x10]
jmp 0x4832fb
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
jmp 0x4832fb
cmp al, 0x40
je 0x48335e
cmp al, 0x41
je 0x48335e
mov esi, 2
mov eax, ebx
jmp 0x483365
mov eax, ebx
mov esi, 1
call fcn.0054aea0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0xa
jl 0x482f2d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc