Function at 0x42ff90
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4626ad
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x49001c]
xor eax, esp
mov dword [esp + 0x548], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0x564]
mov dword fs:[0], eax
mov eax, dword [esp + 0x574]
lea ecx, [esp + 0xec]
push 0x3f5
push ecx
mov dword [esp + 0x34], eax
call 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_]
add esp, 8
xor ebp, ebp
mov dword [esp + 0x56c], ebp
xor esi, esi
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0x56c], 1
xor ebx, ebx
cmp dword [esp + 0x100], ebp
jle 0x430108
mov edi, edi
push ebx
lea ecx, [esp + 0xf0]
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 0x43008e
mov esi, dword [esp + 0x1c]
cmp esi, ebp
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], ebp
je 0x430067
mov ecx, dword [esp + 0x24]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 1
sar ecx, 1
cmp eax, ecx
jae 0x430067
mov eax, edx
add eax, 2
mov word [edx], bp
mov dword [esp + 0x20], eax
jmp 0x4300f0
cmp esi, edx
mov edi, edx
jbe 0x430073
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x28]
call fcn.00431a50
jmp 0x4300ec
push ebx
lea ecx, [esp + 0xf0]
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 + 0x1c]
cmp esi, ebp
mov edx, dword [esp + 0x20]
mov edi, eax
je 0x4300cd
mov ecx, dword [esp + 0x24]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 1
sar ecx, 1
cmp eax, ecx
jae 0x4300cd
mov cx, word [edi]
mov eax, edx
add eax, 2
mov word [edx], cx
mov dword [esp + 0x20], eax
jmp 0x4300f0
cmp esi, edx
mov ebp, edx
jbe 0x4300d9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebp
lea eax, [esp + 0x1c]
push eax
push edi
lea edx, [esp + 0x3c]
push edx
call fcn.00431a50
xor ebp, ebp
mov eax, dword [esp + 0x20]
add ebx, 1
cmp ebx, dword [esp + 0x100]
jl 0x430020
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
cmp esi, ebp
mov dword [esp + 0x28], ebp
je 0x43012a
mov edx, eax
sub edx, esi
sub ecx, esi
sar edx, 1
sar ecx, 1
cmp edx, ecx
jae 0x43012a
lea edx, [eax + 2]
mov word [eax], bp
mov dword [esp + 0x20], edx
jmp 0x430153
cmp esi, eax
mov edi, eax
jbe 0x430136
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x28]
call fcn.00431a50
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, ebp
mov dword [esp + 0x28], ebp
je 0x43017d
mov ecx, dword [esp + 0x24]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 1
sar ecx, 1
cmp eax, ecx
jae 0x43017d
mov word [edx], bp
add edx, 2
mov dword [esp + 0x20], edx
jmp 0x4301a2
cmp esi, edx
mov edi, edx
jbe 0x430189
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
call fcn.00431a50
push 0x206
lea ecx, [esp + 0x35a]
push ebp
push ecx
mov word [esp + 0x360], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x108]
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_void_]
lea ecx, [esp + 0xb4]
mov byte [esp + 0x56c], 2
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_void_]
lea ecx, [esp + 0xd0]
mov byte [esp + 0x56c], 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__::constructor_void_]
push 0x54
xor ebp, ebp
lea edx, [esp + 0x64]
push ebp
mov ebx, 4
push edx
mov byte [esp + 0x578], bl
call sub.MSVCR80.dll_memset
mov edi, dword [esp + 0x38]
add esp, 0xc
mov ecx, edi
mov dword [esp + 0x5c], 0x58
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x43023f
mov ecx, dword [esp + 0x20]
sub ecx, eax
sar ecx, 1
jne 0x430249
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x68], eax
mov eax, dword [sym.imp.K8Common.dll_public:_static_int___stdcall_GameMgr::GMShellUtils::OFNCenterWindow_struct_HWND_____unsigned_int__unsigned_int__long_int_]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x354]
push ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], 0x104
mov dword [esp + 0x9c], str.mres
mov dword [esp + 0x94], 0x81822
mov dword [esp + 0xa4], eax
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
test eax, eax
je 0x43045f
lea edx, [esp + 0x354]
push edx
lea ecx, [esp + 0xb8]
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 dword [esp + 0xc8], ebp
je 0x43045f
lea edx, [esp + 0x38]
push edx
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::GMMouseRecorder::GetFileName_void_]
add esp, 4
push eax
lea ecx, [esp + 0x10c]
mov byte [esp + 0x570], 5
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x38]
mov byte [esp + 0x56c], bl
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 + 0xb8]
mov eax, 8
cmp dword [esp + 0xcc], eax
jae 0x43030b
lea ecx, [esp + 0xb8]
cmp dword [esp + 0x120], eax
mov eax, dword [esp + 0x10c]
jae 0x430322
lea eax, [esp + 0x10c]
push ebp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, 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_]
cmp eax, 1
sete al
test al, al
je 0x4303ad
lea eax, [esp + 0x38]
push 0x3f6
push eax
call esi
add esp, 8
push eax
lea ecx, [esp + 0xd4]
mov byte [esp + 0x570], 6
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x38]
mov byte [esp + 0x56c], bl
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 + 0x38]
push 0x3fb
push ecx
call esi
add esp, 8
lea edx, [esp + 0xd0]
push edx
push eax
push ebp
push ebx
lea eax, [esp + 0x134]
mov byte [esp + 0x57c], 7
mov edi, dword [edi + 4]
push eax
call fcn.0042e930
mov byte [esp + 0x56c], 9
jmp 0x43041e
lea ecx, [esp + 0x38]
push 0x46b
push ecx
call esi
add esp, 8
push eax
lea ecx, [esp + 0xd4]
mov byte [esp + 0x570], 0xa
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x38]
mov byte [esp + 0x56c], bl
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 edx, [esp + 0x38]
push 0x3e9
push edx
call esi
add esp, 8
lea ecx, [esp + 0xd0]
push ecx
push eax
push 3
push ebx
lea edx, [esp + 0x134]
mov byte [esp + 0x57c], 0xb
mov edi, dword [edi + 4]
push edx
call fcn.0042e930
mov byte [esp + 0x56c], 0xd
lea ecx, [esp + 0x38]
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 + 0x124]
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMWindowWnd::ShowModal_void_]
mov byte [esp + 0x56c], bl
lea ecx, [esp + 0x124]
mov dword [esp + method.GameMgr::GMAddUserDlg.virtual_0], vtable.GameMgr::GMMessageDlg.0
mov dword [esp + method.GameMgr::GMMessageDlg.1.virtual_0], vtable.GameMgr::GMMessageDlg.1.0
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMWindowImplBase::destructor_void_]
lea ecx, [esp + 0xd0]
mov byte [esp + 0x56c], 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_]
lea ecx, [esp + 0xb4]
mov byte [esp + 0x56c], 2
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 + 0x108]
mov byte [esp + 0x56c], 1
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 byte [esp + 0x56c], 0
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x4304c2
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
lea ecx, [esp + 0xec]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x56c], 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 + 0x564]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.0045d098
add esp, 0x55c
ret 4