Function at 0x54f680
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x5b107c]
xor eax, esp
mov dword [esp + 0x98], eax
movzx ecx, word [ebp + 8]
xor edx, edx
mov eax, ecx
div dword [0x6982b8]
mov eax, dword [0x6982bc]
push ebx
push esi
push edi
mov dword [esp + 0x18], ecx
mov edx, dword [eax + edx*4]
test edx, edx
je 0x54faa0
nop
cmp dword [edx], ecx
je 0x54f6e2
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x54f6c0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.005762ee
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [edx + 4]
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x54faa0
mov esi, 8
cmp dword [0x6573f0], esi
je 0x54f711
mov ecx, dword [0x6573c8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], esi
xor edi, edi
cmp dword [ebx + 4], edi
jle 0x54f754
add ebx, 0xc
jmp 0x54f720
mov esi, dword [ebx]
mov ecx, 0x683418
call fcn.00532220
test eax, eax
je 0x54f745
mov ecx, dword [0x65fadc]
mov edx, dword [ecx]
add eax, 0x5c
push eax
mov eax, dword [edx + 0x188]
push ecx
call eax
mov ecx, dword [esp + 0x10]
inc edi
add ebx, 4
cmp edi, dword [ecx + 4]
jl 0x54f720
mov ebx, ecx
mov esi, 6
cmp dword [0x6573f0], esi
je 0x54f774
mov edx, dword [0x6573c0]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], esi
cmp dword [ebx + 8], 0
mov dword [esp + 0x14], 0
jle 0x54f848
add ebx, 0x264
mov ecx, dword [ebx]
xor edx, edx
mov eax, ecx
div dword [0x67ddb8]
mov eax, dword [0x67ddbc]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x54f7b3
cmp dword [edx], ecx
je 0x54f924
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x54f7a4
xor edx, edx
movzx eax, word [edx + 0x7e]
mov edx, dword [0x6980fc]
lea edi, [eax*4]
lea esi, [edi + edx]
test esi, esi
jne 0x54f7f7
push ecx
lea eax, [esp + 0x24]
push str.No_Name_ModList__Plz_Check_again.ItemNum_:__d
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push str.MHMap.cpp
lea ecx, [esp + 0x24]
mov edx, 0x9c
call fcn.0052cb10
add esp, 4
mov ecx, dword [esi]
test ecx, ecx
je 0x54f80e
mov eax, dword [0x65fadc]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x188]
call eax
mov ecx, dword [0x698108]
mov eax, dword [edi + ecx]
test eax, eax
je 0x54f82d
mov ecx, dword [0x65fadc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x188]
push ecx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
add ebx, 4
mov dword [esp + 0x14], eax
cmp eax, dword [ecx + 8]
jl 0x54f78c
mov ebx, ecx
mov ecx, 0x6982f4
call fcn.00575150
mov dword [esp + 0xc], eax
test eax, eax
je 0x54f890
lea ebx, [ebx]
lea edx, [esp + 0xc]
push edx
mov ecx, 0x6982f4
call fcn.00574b80
mov eax, dword [eax]
test eax, eax
je 0x54f889
mov ecx, dword [0x65fadc]
mov eax, dword [eax]
mov edx, dword [ecx]
push eax
push ecx
mov ecx, dword [edx + 0x188]
call ecx
cmp dword [esp + 0xc], 0
jne 0x54f860
mov esi, 0xa
cmp dword [0x6573f0], esi
je 0x54f8b0
mov edx, dword [0x6573d0]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], esi
mov ecx, 0x6982d8
call fcn.00575150
mov dword [esp + 0xc], eax
test eax, eax
je 0x54f8f2
lea eax, [esp + 0xc]
push eax
mov ecx, 0x6982d8
call fcn.00574b80
mov eax, dword [eax]
test eax, eax
je 0x54f8eb
mov ecx, dword [0x65fadc]
mov eax, dword [eax]
mov edx, dword [ecx]
push eax
push ecx
mov ecx, dword [edx + 0x188]
call ecx
cmp dword [esp + 0xc], 0
jne 0x54f8c2
mov ecx, dword [0x698310]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x54f9f2
mov eax, dword [ecx]
inc eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x1c], eax
cmp eax, 1
jbe 0x54f9f2
add ebx, 0x268
jmp 0x54f934
mov edx, dword [edx + 4]
jmp 0x54f7b5
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx + edx*4]
xor edx, edx
mov eax, ecx
div dword [0x67ddb8]
mov eax, dword [0x67ddbc]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x54f960
cmp dword [edx], ecx
je 0x54fa32
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x54f951
xor edx, edx
movzx eax, word [edx + 0x7e]
mov ecx, dword [0x6980fc]
lea edi, [eax*4]
lea esi, [edi + ecx]
test esi, esi
jne 0x54f9a6
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x24]
push str.No_Name_ModList__Plz_Check_again.ItemNum_:__d
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push str.MHMap.cpp
lea ecx, [esp + 0x24]
mov edx, 0xda
call fcn.0052cb10
add esp, 4
mov ecx, dword [esi]
test ecx, ecx
je 0x54f9bd
mov eax, dword [0x65fadc]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x188]
call eax
mov ecx, dword [0x698108]
mov eax, dword [edi + ecx]
test eax, eax
je 0x54f9dc
mov ecx, dword [0x65fadc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x188]
push ecx
call eax
mov eax, dword [esp + 0x10]
inc eax
add ebx, 4
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
jb 0x54f930
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, ecx
div dword [0x698318]
mov eax, dword [0x69831c]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x54faa0
cmp dword [edx], ecx
je 0x54fa3a
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x54fa10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.005762ee
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edx + 4]
jmp 0x54f962
mov edx, dword [edx + 4]
test edx, edx
je 0x54faa0
lea esi, [edx + 8]
mov ecx, esi
call fcn.00575150
mov dword [esp + 0xc], eax
test eax, eax
je 0x54fa80
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00574b80
mov eax, dword [eax]
test eax, eax
je 0x54fa79
mov ecx, dword [0x65fadc]
mov eax, dword [eax]
mov edx, dword [ecx]
push eax
push ecx
mov ecx, dword [edx + 0x188]
call ecx
cmp dword [esp + 0xc], 0
jne 0x54fa53
cmp dword [0x6573f0], 0
je 0x54faa0
mov edx, dword [0x6573a8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x6573f0], 0
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005762ee
mov esp, ebp
pop ebp
ret 4