Function at 0x405000
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x408ba2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x288], 1
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x290]
push 0x40d77c
lea ecx, [esp + 0x1c]
mov bl, 2
push eax
push ecx
mov byte [esp + 0x294], bl
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x50]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__findfirst]
mov esi, eax
add esp, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], esi
call fcn.00408078
cmp esi, 0xffffffff
je 0x405297
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
cmp byte [esp + 0x64], 0x2e
je 0x405276
test byte [esp + 0x50], 0x10
jne 0x405276
push 1
push 0
push 0
lea eax, [esp + 0x40]
push 0
push eax
call ebp
test eax, eax
je 0x4050d6
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push 0
push 0
lea eax, [esp + 0x40]
push 0
push eax
call ebp
test eax, eax
jne 0x4050ad
lea ecx, [esp + 0x64]
push str.tqcookie.dat
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x405276
lea edx, [esp + 0x64]
push str.jyverify.dat
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x405276
lea eax, [esp + 0x64]
lea ecx, [esp + 0x294]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call sub.MFC42.DLL_operator
mov esi, dword [eax]
lea eax, [esp + 0x64]
lea ecx, [esp + 0x290]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x294], 3
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
lea ecx, [esp + 0x18]
sete byte [esp + 0x13]
call fcn.00408078
lea ecx, [esp + 0x28]
mov byte [esp + 0x288], bl
call fcn.00408078
mov al, byte [esp + 0x13]
test al, al
jne 0x405297
lea eax, [esp + 0x64]
lea ecx, [esp + 0x294]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x168]
push ecx
push eax
mov byte [esp + 0x290], 4
call sub.MFC42.DLL_CFile::GetStatus
lea ecx, [esp + 0x2c]
mov byte [esp + 0x288], bl
call fcn.00408078
lea edx, [esp + 0x64]
lea eax, [esp + 0x294]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x184], 0x20
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x168]
push edx
push eax
mov byte [esp + 0x290], 5
call sub.MFC42.DLL_CFile::SetStatus
lea ecx, [esp + 0x1c]
mov byte [esp + 0x288], bl
call fcn.00408078
lea eax, [esp + 0x64]
lea ecx, [esp + 0x294]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28c], 6
call fcn.00408198
lea ecx, [esp + 0x30]
mov byte [esp + 0x288], bl
call fcn.00408078
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push 0x40d9c8
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
lea ecx, [edi + 0x60]
push eax
mov byte [esp + 0x28c], 7
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x20]
mov byte [esp + 0x288], bl
call fcn.00408078
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x50]
push edx
push esi
call dword [sym.imp.MSVCRT.dll__findnext]
add esp, 8
test eax, eax
je 0x405084
push esi
call dword [sym.imp.MSVCRT.dll__findclose]
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x288], 1
call fcn.00408078
lea ecx, [esp + 0x290]
mov byte [esp + 0x288], 0
call fcn.00408078
lea ecx, [esp + 0x294]
mov dword [esp + 0x288], 0xffffffff
call fcn.00408078
mov ecx, dword [esp + 0x280]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x27c
ret 8