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

Disassembly:
push 0xffffffffffffffff
push 0x421553
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x43701c]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43701c]
xor eax, esp
push eax
lea eax, [esp + 0x2dc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2ec]
mov edi, dword [sym.imp.K8UIRender.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::LoadStr_unsigned_int_]
lea ecx, [esp + 0xb0]
push 0xb7
push ecx
mov dword [esp + 0x30], eax
call edi
lea edx, [esp + 0x9c]
push 0xb8
xor ebp, ebp
push edx
mov dword [esp + 0x2f4], ebp
call edi
add esp, 0x10
xor edi, edi
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x2e4], 2
xor ebx, ebx
cmp dword [esp + 0xa8], ebp
jle 0x4075fe
nop
push ebx
lea ecx, [esp + 0x98]
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], 0x7c
jne 0x407581
mov edi, dword [esp + 0x18]
cmp edi, ebp
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], ebp
je 0x407557
mov ecx, dword [esp + 0x20]
mov eax, edx
sub eax, edi
sub ecx, edi
sar eax, 1
sar ecx, 1
cmp eax, ecx
jae 0x407557
mov eax, edx
add eax, 2
mov word [edx], bp
mov dword [esp + 0x1c], eax
jmp 0x4075e6
cmp edi, edx
mov esi, edx
jbe 0x407563
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x98]
push ecx
lea eax, [esp + 0x24]
call fcn.0040edd0
jmp 0x4075e2
push ebx
lea ecx, [esp + 0x98]
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_]
mov edi, dword [esp + 0x18]
test edi, edi
mov edx, dword [esp + 0x1c]
mov ebp, eax
je 0x4075c3
mov ecx, dword [esp + 0x20]
mov eax, edx
sub eax, edi
sub ecx, edi
sar eax, 1
sar ecx, 1
cmp eax, ecx
jae 0x4075c3
mov cx, word [ebp]
mov eax, edx
add eax, 2
mov word [edx], cx
mov dword [esp + 0x1c], eax
xor ebp, ebp
jmp 0x4075e6
cmp edi, edx
mov esi, edx
jbe 0x4075cf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
lea eax, [esp + 0x18]
push eax
push ebp
lea edx, [esp + 0x38]
push edx
call fcn.0040edd0
xor ebp, ebp
mov eax, dword [esp + 0x1c]
add ebx, 1
cmp ebx, dword [esp + 0xa8]
jl 0x407510
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
cmp edi, ebp
mov dword [esp + 0x24], ebp
je 0x407620
mov edx, eax
sub edx, edi
sub ecx, edi
sar edx, 1
sar ecx, 1
cmp edx, ecx
jae 0x407620
lea edx, [eax + 2]
mov word [eax], bp
mov dword [esp + 0x1c], edx
jmp 0x407649
cmp edi, eax
mov esi, eax
jbe 0x40762c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x24]
call fcn.0040edd0
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
cmp edi, ebp
mov dword [esp + 0x24], ebp
je 0x407675
mov ecx, dword [esp + 0x20]
mov eax, edx
sub eax, edi
sub ecx, edi
sar eax, 1
sar ecx, 1
cmp eax, ecx
jae 0x407675
mov eax, edx
add eax, 2
mov word [edx], bp
mov dword [esp + 0x1c], eax
jmp 0x40769a
cmp edi, edx
mov esi, edx
jbe 0x407681
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
call fcn.0040edd0
push 0x206
lea ecx, [esp + 0xd2]
push ebp
push ecx
mov word [esp + 0xd8], bp
call sub.MSVCR80.dll_memset
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 4]
add esp, 0xc
push ebp
mov dword [esp + 0x38], 0x58
mov dword [esp + 0x3c], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4076e8
mov ecx, dword [esp + 0x1c]
sub ecx, eax
sar ecx, 1
jne 0x4076f2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0xc8], 8
lea edx, [esp + 0xcc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 0x104
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
jb 0x407738
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x64], eax
jmp 0x407743
lea ecx, [esp + 0xb4]
mov dword [esp + 0x64], ecx
mov edx, dword [sym.imp.K8Common.dll_public:_static_int___stdcall_GameMgr::GMShellUtils::OFNCenterWindow_struct_HWND_____unsigned_int__unsigned_int__long_int_]
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x6c], 0x881020
mov word [esp + 0x70], bp
mov word [esp + 0x72], bp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], edx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
test eax, eax
je 0x4077c1
lea edx, [esp + 0xcc]
push edx
lea ecx, [esi + 0x2f0]
call dword [0x422ae0]
cmp byte [esi + 0x2ae], 0
je 0x4077b4
push esi
call fcn.00406ca0
call fcn.00406640
mov eax, esi
push eax
call fcn.00406760
mov byte [esp + 0x2e4], 1
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4077e5
mov ecx, dword [esp + 0x20]
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
lea ecx, [esp + 0x94]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov byte [esp + 0x2e4], 0
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 + 0xb0]
mov dword [esp + 0x2e4], 0xffffffff
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 ecx, dword [esp + 0x2dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.0041cf41
add esp, 0x2d4
ret 4