Function at 0x407150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x51a210
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
cmp byte [esp + 0x148], 0
mov ebx, 3
mov dword [esp + 0xd0], ebx
je 0x40760d
mov dword [esp + 0x30], 0
call fcn.005147f0
cmp dword [esp + 0x108], 0
mov dword [esp + 0x34], eax
je 0x40760d
cmp dword [esp + 0xf0], 0x10
mov eax, dword [esp + 0xdc]
jae 0x4071dc
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMStringConvert::CharToGMString_char_const__]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x98]
push edx
mov byte [esp + 0xe0], 4
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMFileName::GetDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xa0]
push ecx
mov byte [esp + 0xe8], 6
call dword [sym.imp.K8Common.dll__GetAllSons_GMFilePathUtils_GameMgr__SAXABV__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__AA]
add esp, 0x18
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ebp
lea esp, [esp]
mov esi, dword [esp + 0x24]
cmp esi, ebp
je 0x407540
mov ecx, dword [esp + 0x28]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x407540
mov edx, dword [esp + 0x1c]
lea eax, [edx + esi]
push eax
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0xd0], 7
mov edx, dword [esp + 0x6c]
cmp edx, 8
mov edi, dword [esp + 0x58]
mov eax, edi
jae 0x40729a
lea eax, [esp + 0x58]
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4072a0
sub eax, esi
sar eax, 1
cmp edx, 8
mov ebx, eax
mov eax, edi
jae 0x4072bc
lea eax, [esp + 0x58]
push 0x52fc24
push eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
cmp eax, ebp
je 0x407348
nop
mov ebp, dword [esp + 0x6c]
cmp ebp, 8
mov ecx, dword [esp + 0x58]
jae 0x4072e1
lea ecx, [esp + 0x58]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4072e4
sub ecx, esi
sar ecx, 1
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4072f6
sub eax, esi
sar eax, 1
mov esi, eax
mov eax, 0x52fc24
lea edi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407310
sub eax, edi
sar eax, 1
sub eax, esi
add eax, ecx
cmp ebp, 8
mov ebx, eax
mov eax, dword [esp + 0x58]
jae 0x407332
lea eax, [esp + 0x58]
lea eax, [eax + ebx*2]
push 0x52fc24
push eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x4072d0
mov ebp, dword [esp + 0x6c]
cmp ebp, 8
mov edi, dword [esp + 0x58]
mov eax, edi
jae 0x40735b
lea eax, [esp + 0x58]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407360
sub eax, edx
mov ecx, 0x52fc24
sar eax, 1
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407377
sub ecx, esi
sar ecx, 1
cmp eax, ecx
jb 0x407411
mov eax, 0x52fc24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407396
sub eax, edx
sar eax, 1
cmp ebp, 8
mov edi, eax
mov eax, dword [esp + 0x58]
jae 0x4073b4
lea eax, [esp + 0x58]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4073b7
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, 0x52fc24
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4073d0
mov ecx, dword [esp + 0x58]
sub eax, esi
sar eax, 1
cmp ebp, 8
jae 0x4073ec
lea ecx, [esp + 0x58]
push edi
sub edx, eax
lea ecx, [ecx + edx*2]
push 0x52fc24
push ecx
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x40750b
mov ebp, dword [esp + 0x6c]
mov edi, dword [esp + 0x58]
cmp ebp, 8
mov eax, edi
jae 0x40741c
lea eax, [esp + 0x58]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407420
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, 0x52fc30
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407440
sub eax, esi
sar eax, 1
add eax, ebx
cmp edx, eax
jb 0x407519
mov eax, 0x52fc30
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407461
sub eax, edx
sar eax, 1
cmp ebp, 8
mov ecx, edi
jae 0x40747b
lea ecx, [esp + 0x58]
push eax
lea edx, [ecx + ebx*2]
push 0x52fc30
push edx
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x407519
mov eax, 0x52fc30
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4074a0
sub eax, edx
sar eax, 1
lea esi, [eax + ebx]
mov edi, 8
jmp 0x4074c0
cmp dword [esp + 0x6c], edi
mov eax, dword [esp + 0x58]
jae 0x4074ce
lea eax, [esp + 0x58]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4074d1
sub eax, edx
sar eax, 1
cmp esi, eax
jae 0x40750b
push esi
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp word [eax], 0x30
jb 0x407519
push esi
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp word [eax], 0x39
ja 0x407519
add esi, 1
jmp 0x4074c0
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMFilePathUtils::RemoveFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 4
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add dword [esp + 0x14], 1
add dword [esp + 0x1c], 0x1c
mov edi, dword [esp + 0x14]
xor ebp, ebp
jmp 0x407240
lea ecx, [esp + 0xf4]
lea esi, [esp + 0x38]
call fcn.0043f570
mov edi, eax
lea ecx, [esp + 0xd8]
lea esi, [esp + 0x54]
mov byte [esp + 0xd0], 8
call fcn.0043f570
push edi
mov edx, eax
lea ecx, [esp + 0xac]
mov byte [esp + 0xd4], 9
call fcn.00431410
add esp, 4
mov ecx, esi
mov byte [esp + 0xd0], 0xb
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x38]
mov byte [esp + 0xd0], 0xc
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0xac]
push edx
call fcn.00431a20
add esp, 8
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd0], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ebx, [esp + 0x20]
mov byte [esp + 0xd0], 5
call fcn.004079b0
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd0], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x70]
mov byte [esp + 0xd0], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ebx, 3
cmp byte [esp + 0x14c], 0
je 0x40768c
mov dword [esp + 0x14], 0
call fcn.005147f0
lea ecx, [esp + 0x110]
lea esi, [esp + 0x38]
mov dword [esp + 0x18], eax
call fcn.0043f570
lea edi, [esp + 0x14]
mov ecx, eax
mov byte [esp + 0xd0], 0xd
call fcn.004318a0
mov ecx, esi
mov byte [esp + 0xd0], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x12c]
lea esi, [esp + 0x38]
call fcn.0043f570
mov ecx, eax
mov byte [esp + 0xd0], 0xe
call fcn.004318a0
mov ecx, esi
mov byte [esp + 0xd0], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xd8]
mov byte [esp + 0xd0], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xf4]
mov byte [esp + 0xd0], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x110]
mov byte [esp + 0xd0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x12c]
mov dword [esp + 0xd0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00515015
add esp, 0xc0
ret