Function at 0x4123d0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4215e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
test edi, edi
je 0x4125e1
mov eax, dword [esp + 0x30]
mov ecx, esi
push eax
push edi
call fcn.004120e0
mov ebp, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov bl, 1
push ecx
mov ecx, esi
mov byte [esp + 0x28], bl
call fcn.00412610
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x41244f
push 0
push 0
push str.W3_install_path_is_empty._Check_the__options__section.
jmp 0x4124c9
push str.replay_w3chart
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x10]
push 0
push eax
call fcn.004058f0
add esp, 8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push str._replay.w3g
push ecx
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.0041f8b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push eax
call fcn.00405b10
mov ecx, dword [esp + 0x18]
mov edi, dword [edi + 8]
add esp, 4
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x412549
push eax
push eax
push str.Unable_to_copy_replay_file_to_the_w3chart_directory.
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x4124e4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
test eax, eax
jne 0x4124e8
xor eax, eax
jmp 0x4124eb
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x412506
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
test eax, eax
jne 0x41250a
xor eax, eax
jmp 0x41250d
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x412528
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
test eax, eax
jne 0x412538
xor eax, eax
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4125d3
mov eax, dword [eax + 0x20]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4125d3
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb8]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x4125d3
test ebp, ebp
je 0x4125d3
mov ecx, dword [eax + 0x68]
mov ebx, dword [eax + 0x64]
mov dword [esp + 0x2c], ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4125d3
test ebp, ebp
jle 0x412588
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
movsx esi, byte [ebx + ebp]
cmp esi, 0x2a
jne 0x41259e
mov esi, 0x28
mov dword [esp + 0x2c], 0xfa
mov eax, dword [esp + 0x30]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push esi
push 0x100
push eax
call edi
mov ecx, dword [esp + 0x30]
push 0
push esi
push 0x101
push ecx
call edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jl 0x412579
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8