Function at 0x409c30
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x410268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x18]
mov dword [esp + 0x30], esi
cmp eax, edi
jne 0x409c70
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
cmp eax, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov ebx, 1
jle 0x409fe7
lea ebp, [esi + 0xc]
jmp 0x409c92
mov esi, dword [esp + 0x30]
push 0x415ae8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
push 0x415ae8
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], 0
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x34]
add esi, 0x10
push edi
push eax
mov ecx, esi
mov byte [esp + 0x60], bl
call fcn.0040ae50
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], bl
call fcn.0040e8b6
lea ecx, [esp + 0x38]
push edi
push ecx
mov ecx, esi
call fcn.0040ae50
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], bl
call fcn.0040e8b6
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x60], 4
mov ecx, esp
mov dword [esp + 0x54], esp
push ebp
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x44]
mov byte [esp + 0x60], bl
push eax
call fcn.00409960
mov ecx, dword [eax]
mov edx, dword [ebp]
push ecx
push edx
lea eax, [esp + 0x24]
push str._s_s
push eax
mov byte [esp + 0x74], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], bl
call fcn.0040e8b6
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00401340
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.syscfg.ini
push eax
mov byte [esp + 0x68], 6
call esi
add esp, 0x10
test eax, eax
je 0x409dc9
mov ecx, dword [esp + 0x18]
push str.mil.dat
push ecx
call esi
add esp, 8
test eax, eax
je 0x409dc9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
jmp 0x409f97
push 0x415028
lea eax, [esp + 0x48]
push ebp
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x18]
lea edx, [esp + 0x40]
push ecx
push eax
push edx
mov byte [esp + 0x64], 7
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 7
call fcn.0040e8b6
lea ecx, [esp + 0x44]
mov byte [esp + 0x58], 6
call fcn.0040e8b6
mov eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x409f7e
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x409f5b
lea ecx, [esp + 0x20]
push 0x68
push ecx
mov ecx, dword [0x415ae4]
call fcn.0040bef0
mov esi, dword [eax]
mov byte [esp + 0x58], 9
test esi, esi
je 0x409e84
mov eax, dword [esi + 4]
test eax, eax
jne 0x409e7f
mov edx, dword [esi]
push edx
call fcn.0040edb3
test eax, eax
mov dword [esi + 4], eax
jne 0x409e7f
cmp dword [esi], 0
je 0x409e7f
push 0x8007000e
call fcn.0040ecf2
mov edi, dword [esi + 4]
jmp 0x409e86
xor edi, edi
mov ecx, dword [0x415ae4]
lea eax, [esp + 0x1c]
push 0x67
push eax
call fcn.0040bef0
mov esi, dword [eax]
mov byte [esp + 0x58], 0xa
test esi, esi
je 0x409ecd
mov eax, dword [esi + 4]
test eax, eax
jne 0x409ec8
mov ecx, dword [esi]
push ecx
call fcn.0040edb3
test eax, eax
mov dword [esi + 4], eax
jne 0x409ec8
cmp dword [esi], 0
je 0x409ec8
push 0x8007000e
call fcn.0040ecf2
mov esi, dword [esi + 4]
jmp 0x409ecf
xor esi, esi
push 0x44
push edi
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x58], 9
je 0x409f0e
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x409f06
test esi, esi
je 0x409f06
push ebx
mov ecx, esi
call fcn.004045a0
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x20]
mov byte [esp + 0x58], 6
test eax, eax
je 0x409f47
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x409f3f
test esi, esi
je 0x409f3f
mov ecx, esi
call fcn.004045e0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x20], 0
xor edx, edx
cmp edi, 6
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
sete dl
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x409fa9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
jmp 0x409f97
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
lea edx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00403560
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], bl
call fcn.0040e8b6
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 0
call fcn.0040e8b6
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], 0xffffffff
call fcn.0040e8b6
mov eax, dword [esp + 0x30]
inc edi
mov dword [esp + 0x2c], edi
cmp edi, dword [eax + 0x18]
jl 0x409c8e
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret