Function at 0x51aef0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x53fd74
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x5c403c]
xor eax, esp
mov dword [esp + 0x4bc], eax
push ebx
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x4d0]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
call dword [0x55a6c4]
xor ebx, ebx
mov dword [esp + 0x4d8], ebx
lea ecx, [esp + 0x1c]
call dword [0x55a6c4]
mov byte [esp + 0x4d8], 1
push esi
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea eax, [esp + 0x18]
push esi
push eax
mov edi, str..bak
call fcn.0040f2b0
add esp, 8
mov byte [esp + 0x4d8], 2
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0x4d8], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0x24c
lea ecx, [esp + 0x34]
push ebx
push ecx
mov dword [esp + 0x38], ebx
call sub.MSVCR90.dll_memset
push 0x24c
lea edx, [esp + 0x290]
push ebx
push edx
mov dword [esp + 0x294], ebx
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0xffffffff
je 0x51afe5
push eax
call edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x27c]
push edx
push eax
call esi
cmp eax, 0xffffffff
je 0x51affc
push eax
call edi
mov eax, 3
cmp dword [esp + 0x4c], eax
jae 0x51b0ff
cmp dword [esp + 0x29c], eax
jbe 0x51b0ff
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [0x5c7004], ebx
je 0x51b0ff
push 0x55ae9c
lea ecx, [esp + 0x1c]
call dword [0x55a504]
mov byte [esp + 0x4d8], 3
push str.BACK
lea ecx, [esp + 0x24]
call dword [0x55a504]
mov byte [esp + 0x4d8], 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
mov ebx, 0x58eaec
call fcn.004393e0
mov byte [esp + 0x4dc], 5
push eax
lea ecx, [esp + 0x2c]
push ecx
mov edi, 0x58eab8
call fcn.0040f2b0
add esp, 0xc
mov byte [esp + 0x4d8], 6
mov esi, dword [0x5c7004]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push ecx
mov ecx, 5
mov ebx, eax
call fcn.00433ab0
mov byte [esp + 0x4d8], 5
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x4d8], 4
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x4d8], 3
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x4d8], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor ebx, ebx
mov byte [esp + 0x4d8], bl
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x4d8], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x4d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4bc]
xor ecx, esp
call fcn.00532776
add esp, 0x4cc
ret