Function at 0x549da0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, eax
mov dword [esi + 0x2c], ebx
cmp dword [esi + 0x14], ebx
jne 0x549dbe
mov dword [esi + 0x24], 1
mov eax, dword [esi]
mov edx, dword [eax + 4]
call edx
mov al, byte [ebp + 0xc]
mov byte [esi + 0x28], bl
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], edi
cmp edi, ebx
je 0x549ddb
movzx ecx, al
mov dword [edi + 4], ecx
mov dword [ebp - 4], ebx
cmp al, 4
jne 0x549de9
mov dword [ebp - 4], 2
mov cl, byte [ebp + 0x10]
cmp cl, 1
je 0x549df6
cmp cl, 2
jne 0x549df9
mov dword [ebp - 4], ebx
cmp al, bl
jne 0x549e1a
mov edi, 6
cmp dword [0x6573f0], edi
je 0x549ef3
mov edx, dword [0x6573c0]
push edx
jmp 0x549ee7
cmp al, 1
jne 0x549e39
mov edi, 8
cmp dword [0x6573f0], edi
je 0x549ef3
mov eax, dword [0x6573c8]
jmp 0x549ee6
cmp al, 2
jne 0x549e5a
mov edi, 9
cmp dword [0x6573f0], edi
je 0x549ef3
mov ecx, dword [0x6573cc]
push ecx
jmp 0x549ee7
cmp al, 4
jne 0x549e78
mov edi, 0xa
cmp dword [0x6573f0], edi
je 0x549ef3
mov edx, dword [0x6573d0]
push edx
jmp 0x549ee7
cmp al, 3
jne 0x549e90
mov edi, 6
cmp dword [0x6573f0], edi
je 0x549ef3
mov eax, dword [0x6573c0]
jmp 0x549ee6
mov ebx, 7
cmp al, bl
jne 0x549eb6
cmp dword [0x6573f0], ebx
je 0x549ef3
mov ecx, dword [0x6573c4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], ebx
jmp 0x549ef3
cmp al, 9
jne 0x549ed0
mov edi, 0xe
cmp dword [0x6573f0], edi
je 0x549ef3
mov edx, dword [0x6573e0]
push edx
jmp 0x549ee7
cmp al, 0xa
jne 0x549ef3
mov edi, 0xf
cmp dword [0x6573f0], edi
je 0x549ef3
mov eax, dword [0x6573e4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], edi
mov eax, dword [0x65fadc]
mov ebx, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x188]
push ebx
push eax
call edx
mov ecx, dword [ebp - 4]
mov al, byte [ebp + 0x10]
push esi
call fcn.0054af90
mov dword [esi + 0x14], eax
test eax, eax
jne 0x549f77
push 0x5948e0
push str.._Log_MissedObjectList.txt
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x549f4d
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 0x549f6c
mov eax, dword [0x6573a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 0xc], 4
jne 0x549f86
push 0
mov ecx, esi
call fcn.0054a700
mov edi, dword [esi + 0x14]
call fcn.00549110
test eax, eax
jne 0x549f9b
mov edx, edi
mov edi, ebx
call fcn.00549280
mov dword [esi + 0x3c], eax
cmp dword [0x6573f0], 0
je 0x549fbe
mov ecx, dword [0x6573a8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0
cmp dword [esi + 0x24], 0xffffffff
jne 0x549fd0
push 1
mov ecx, 1
call fcn.0054a4a0
cmp dword [esi + 0x14], 0
je 0x54a013
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
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc