Function at 0x42ed20
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f8f4
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4632c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x14], 0x80004005
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x74]
push ecx
mov ecx, dword [ebp - 0x90]
add ecx, 0x2c0
call fcn.00436630
cmp dword [eax + 0x3c], 0
jne 0x42ed7d
mov eax, 0x80004005
jmp 0x42ef11
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x58
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov ecx, dword [ebp - 0x90]
add ecx, 0x244
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42eef0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x74]
push eax
mov ecx, dword [ebp - 0x90]
add ecx, 0x2c0
call fcn.00436630
add eax, 0x38
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp - 0x94]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x74]
push edx
mov ecx, dword [ebp - 0x90]
add ecx, 0x2c0
call fcn.00436630
cmp dword [eax + 0x38], 3
jle 0x42eee9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x74]
push ecx
mov ecx, dword [ebp - 0x90]
add ecx, 0x2c0
call fcn.00436630
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea edx, [ebp - 0x8c]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x70], esp
push 0x3b
push str.0P_v__6_nR_t_L1____
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x6c]
call fcn.004034e0
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xa0]
call fcn.004038b0
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xa8]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 1
mov edx, dword [ebp - 0x90]
push edx
call fcn.0042a3d0
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004050e0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x74]
push ecx
mov ecx, dword [ebp - 0x90]
add ecx, 0x2c0
call fcn.00436630
mov dword [eax + 0x3c], 0
mov eax, 0x80004005
jmp 0x42ef11
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x74]
push eax
mov ecx, dword [ebp - 0x90]
add ecx, 0x2c0
call fcn.00436630
mov dword [eax + 0x38], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4