Function at 0x479b40
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x57e9bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x140]
mov dword [esp + 0x130], 1
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [esi + 0x140]
mov ebx, 2
or ebp, 0xffffffff
mov byte [esp + 0x130], bl
test eax, eax
je 0x479bc2
lea edi, [eax + 0x5488]
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x479c12
push 0x104
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x5f3788
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
push ecx
call fcn.00443770
add esp, 8
mov ecx, eax
mov byte [esp + 0x134], 3
call fcn.0040d730
lea edx, [esp + 0x28]
push eax
push edx
call fcn.0043bab0
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], bl
call sub.MFC42.DLL_CString::CString
push 1
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_3
call fcn.00443380
add esp, 8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [esp + 0x144]
mov byte [esp + 0x130], 4
test eax, eax
jne 0x479c50
push 0x5e2f94
jmp 0x479c69
cmp eax, 1
jne 0x479c5c
push 0x5e29d8
jmp 0x479c69
cmp eax, ebx
jne 0x479e18
push 0x5e29e4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x140]
push 0x5e2010
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x479d2c
mov eax, dword [esp + 0x148]
test eax, eax
je 0x479d2c
push 0x5e200c
lea ecx, [esp + 0x144]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x140]
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x14]
push edx
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0x20]
push str._s_feiq_s_08x._s
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00440560
add esp, 0x1c
test al, al
jne 0x479d66
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_4
push ecx
lea eax, [esp + 0x140]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x13c], 5
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x138], 4
call fcn.00471b60
add esp, 8
jmp 0x479dca
mov ecx, dword [esp + 0x140]
mov edx, dword [esp + 0x13c]
mov eax, dword [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x20]
push str._s_feiq_s_08x._s
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
push eax
call fcn.00440560
add esp, 0x1c
test al, al
je 0x479db5
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x138]
mov byte [esp + 0x130], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x140]
mov dword [esp + 0x130], ebp
call sub.MFC42.DLL_CString::CString
mov eax, ebx
jmp 0x479e62
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x138]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x130], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x138]
mov byte [esp + 0x130], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x140]
mov dword [esp + 0x130], ebp
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x479e62
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x138]
mov byte [esp + 0x130], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x140]
mov dword [esp + 0x130], ebp
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x124
ret 0x14