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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x417f43
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x42601c]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x42601c]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xb0]
push 0xb7
push ecx
mov dword [esp + 0x30], eax
call sub.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 edx, [esp + 0x9c]
push 0xb8
xor edi, edi
push edx
mov dword [esp + 0x2f8], edi
call sub.K8UIRender.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::LoadStr_unsigned_int_
add esp, 0x10
xor esi, esi
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x2e8], 2
xor ebx, ebx
cmp dword [esp + 0xa8], edi
mov dword [esp + 0x24], ebx
jle 0x404a93
jmp 0x4049a0
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 0x404a11
mov esi, dword [esp + 0x18]
cmp esi, edi
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
je 0x4049e7
mov ecx, dword [esp + 0x20]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 1
sar ecx, 1
cmp eax, ecx
jae 0x4049e7
mov eax, edx
add eax, 2
mov word [edx], di
mov dword [esp + 0x1c], eax
jmp 0x404a77
cmp esi, edx
mov edi, edx
jbe 0x4049f3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x98]
push ecx
lea eax, [esp + 0x24]
call fcn.004098c0
jmp 0x404a71
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 esi, dword [esp + 0x18]
test esi, esi
mov edx, dword [esp + 0x1c]
mov edi, eax
je 0x404a50
mov ecx, dword [esp + 0x20]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 1
sar ecx, 1
cmp eax, ecx
jae 0x404a50
mov cx, word [edi]
mov eax, edx
add eax, 2
mov word [edx], cx
mov dword [esp + 0x1c], eax
jmp 0x404a75
cmp esi, edx
mov ebx, edx
jbe 0x404a5c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebx
lea eax, [esp + 0x18]
push eax
push edi
lea edx, [esp + 0x38]
push edx
call fcn.004098c0
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
xor edi, edi
add ebx, 1
cmp ebx, dword [esp + 0xa8]
mov dword [esp + 0x24], ebx
jl 0x4049a0
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp esi, edi
mov dword [esp + 0x24], edi
je 0x404ab5
mov edx, eax
sub edx, esi
sub ecx, esi
sar edx, 1
sar ecx, 1
cmp edx, ecx
jae 0x404ab5
lea edx, [eax + 2]
mov word [eax], di
mov dword [esp + 0x1c], edx
jmp 0x404ae0
cmp esi, eax
mov edi, eax
jbe 0x404ac1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x24]
call fcn.004098c0
mov edx, dword [esp + 0x1c]
xor edi, edi
mov esi, dword [esp + 0x18]
cmp esi, edi
mov dword [esp + 0x24], edi
je 0x404b0a
mov ecx, dword [esp + 0x20]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 1
sar ecx, 1
cmp eax, ecx
jae 0x404b0a
mov word [edx], di
add edx, 2
mov dword [esp + 0x1c], edx
jmp 0x404b31
cmp esi, edx
mov edi, edx
jbe 0x404b16
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
call fcn.004098c0
xor edi, edi
push 0x206
lea ecx, [esp + 0xd2]
push edi
push ecx
mov word [esp + 0xd8], di
call sub.MSVCR80.dll_memset
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 4]
add esp, 0xc
push edi
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, edi
je 0x404b7f
mov ecx, dword [esp + 0x1c]
sub ecx, eax
sar ecx, 1
jne 0x404b89
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], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 0x104
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
jb 0x404bcf
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x64], eax
jmp 0x404bda
lea ecx, [esp + 0xb4]
mov dword [esp + 0x64], ecx
xor eax, eax
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x6c], 0x881020
mov word [esp + 0x70], di
mov word [esp + 0x72], di
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], 0x41406c
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
test eax, eax
je 0x404c81
lea edx, [esp + 0xcc]
push edx
lea ecx, [esi + 0x288]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp byte [esi + 0x24d], 0
je 0x404c4c
push esi
call fcn.00404210
call fcn.00403fb0
push edi
mov eax, esi
call fcn.00403e60
cmp dword [esi + 0x29c], edi
je 0x404c6a
mov ecx, esi
call fcn.00408b70
jmp 0x404c81
cmp dword [esi + 0x284], edi
je 0x404c81
push esi
call fcn.00408600
mov edi, esi
call fcn.00408270
xor edi, edi
mov byte [esp + 0x2e8], 1
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x404ca5
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], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov byte [esp + 0x2e8], 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 + 0x2e8], 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 + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.004149a0
mov esp, ebp
pop ebp
ret 4