Function at 0x42f7d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f582
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x4632c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x284], ecx
mov dword [ebp - 0x4c], 0x80004005
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377d0
test eax, eax
jne 0x42f8d6
lea eax, [ebp - 0x110]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xf4], esp
push 0x38
push 0x45745c
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 - 0x288], eax
lea ecx, [ebp - 0xf0]
call fcn.00402290
mov dword [ebp - 0x28c], eax
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x290], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x290]
call fcn.00402530
mov dword [ebp - 0x294], eax
mov edx, dword [ebp - 0x294]
mov dword [ebp - 0x298], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x298]
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 eax, dword [ebp - 0x284]
push eax
call fcn.0042b540
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
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 - 0xf0]
call fcn.00403c90
mov eax, 0x8000000a
jmp 0x42ff64
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00437f50
mov byte [ebp - 4], 3
mov dword [ebp - 0x54], 0
jmp 0x42f90b
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377d0
cmp dword [ebp - 0x54], eax
jae 0x42f92f
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x48]
call fcn.00438090
jmp 0x42f902
mov dword [ebp - 0x58], 0
jmp 0x42f941
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377d0
cmp dword [ebp - 0x58], eax
jae 0x42f990
call dword [sym.imp.MSVCR90.dll_rand]
mov esi, eax
lea ecx, [ebp - 0x48]
call fcn.00438020
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00438040
push eax
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x48]
call fcn.00438040
push eax
call fcn.0043bfa0
add esp, 8
jmp 0x42f938
mov dword [ebp - 0x5c], 0
jmp 0x42f9a2
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x48]
call fcn.00438020
cmp dword [ebp - 0x5c], eax
jae 0x42fe94
mov ecx, dword [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00438040
mov edx, dword [eax]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377f0
cmp dword [eax + 0x3c], 0
jne 0x42f9e1
jmp 0x42f999
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x42fa13
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377f0
add eax, 0x1c
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
test eax, eax
jne 0x42fa13
jmp 0x42f999
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x42fa4d
mov dword [ebp - 0x50], 1
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377f0
add eax, 0x1c
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
jmp 0x42fb00
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377f0
add eax, 0x1c
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
test eax, eax
je 0x42fada
call dword [sym.imp.MSVCR90.dll_rand]
and eax, 0x80000001
jns 0x42fa83
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42fab2
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377f0
add eax, 0x1c
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 0x50], 1
jmp 0x42fad8
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377f0
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 0x50], 0
jmp 0x42fb00
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377f0
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x98]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0x78]
push edx
mov ecx, dword [ebp - 0x284]
call fcn.004116c0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x42fc0a
lea eax, [ebp - 0x188]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x16c], esp
push 0x3a
push 0x457498
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 - 0x29c], eax
lea ecx, [ebp - 0x168]
call fcn.00402290
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x2a0]
mov dword [ebp - 0x2a4], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2a4]
call fcn.00402530
mov dword [ebp - 0x2a8], eax
mov edx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2ac], edx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2ac]
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 eax, dword [ebp - 0x284]
push eax
call fcn.0042b540
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x188]
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 byte [ebp - 4], 5
lea ecx, [ebp - 0x168]
call fcn.00403c90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
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 byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x42fe94
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
test eax, eax
je 0x42fc42
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
sub eax, 1
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::at_unsigned_int_]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x42fc42
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_unsigned_int__char_]
lea edx, [ebp - 0x98]
push edx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0
lea ecx, [ebp - 0x2c]
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 - 0x284]
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 - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x42fdd4
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377f0
add eax, 0x38
mov dword [ebp - 0x2b0], eax
mov ecx, dword [ebp - 0x2b0]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp - 0x2b0]
mov dword [eax], edx
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377f0
cmp dword [eax + 0x38], 3
jle 0x42fdb2
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377f0
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 eax, [ebp - 0x200]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1e4], esp
push 0x3f
push 0x4574d8
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 - 0x2b4], eax
lea ecx, [ebp - 0x1e0]
call fcn.00402290
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2bc]
call fcn.00402530
mov dword [ebp - 0x2c0], eax
mov edx, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c4], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2c4]
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 eax, dword [ebp - 0x284]
push eax
call fcn.0042b540
add esp, 0x10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x200]
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 byte [ebp - 4], 5
lea ecx, [ebp - 0x1e0]
call fcn.00403c90
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377f0
mov dword [eax + 0x3c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
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 byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x42f999
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x50]
mov dword [edx + 0x78], eax
lea ecx, [ebp - 0x98]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x3c
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x58
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
jne 0x42fe1c
lea ecx, [ebp - 0x78]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x20
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov dword [edx + 0x74], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.004377f0
mov dword [eax + 0x38], 0
mov dword [ebp - 0x204], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
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 byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
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 byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00437fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
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 eax, dword [ebp - 0x204]
jmp 0x42ff64
lea edx, [ebp - 0x27c]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x260], esp
push 0x2a
push 0x457518
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 - 0x2c8], eax
lea ecx, [ebp - 0x25c]
call fcn.00402290
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d0], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2d0]
call fcn.004023a0
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x2d8]
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 - 0x284]
push edx
call fcn.0042b540
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x27c]
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 byte [ebp - 4], 3
lea ecx, [ebp - 0x25c]
call fcn.00403c90
mov dword [ebp - 0x280], 0x80004005
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00437fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
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 eax, dword [ebp - 0x280]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b4f4
mov esp, ebp
pop ebp
ret 8