Function at 0x42d790
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d5e2
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x4612c0]
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.00435a50
test eax, eax
jne 0x42d896
lea eax, [ebp - 0x110]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xf4], esp
push 0x38
push 0x454c5c
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.00402390
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.00402470
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.004293c0
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.004355a0
mov eax, 0x8000000a
jmp 0x42df24
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.004361d0
mov byte [ebp - 4], 3
mov dword [ebp - 0x54], 0
jmp 0x42d8cb
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.00435a50
cmp dword [ebp - 0x54], eax
jae 0x42d8ef
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x48]
call fcn.00436310
jmp 0x42d8c2
mov dword [ebp - 0x58], 0
jmp 0x42d901
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.00435a50
cmp dword [ebp - 0x58], eax
jae 0x42d950
call dword [sym.imp.MSVCR90.dll_rand]
mov esi, eax
lea ecx, [ebp - 0x48]
call fcn.004362a0
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.004362c0
push eax
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x48]
call fcn.004362c0
push eax
call fcn.0043a260
add esp, 8
jmp 0x42d8f8
mov dword [ebp - 0x5c], 0
jmp 0x42d962
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x48]
call fcn.004362a0
cmp dword [ebp - 0x5c], eax
jae 0x42de54
mov ecx, dword [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004362c0
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.00435a70
cmp dword [eax + 0x3c], 0
jne 0x42d9a1
jmp 0x42d959
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x42d9d3
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.00435a70
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 0x42d9d3
jmp 0x42d959
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x42da0d
mov dword [ebp - 0x50], 1
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.00435a70
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 0x42dac0
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.00435a70
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 0x42da9a
call dword [sym.imp.MSVCR90.dll_rand]
and eax, 0x80000001
jns 0x42da43
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42da72
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.00435a70
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 0x42da98
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.00435a70
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 0x42dac0
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.00435a70
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.00411160
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x42dbca
lea eax, [ebp - 0x188]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x16c], esp
push 0x3a
push 0x454c98
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.00402390
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.00402690
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.004293c0
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.004355a0
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 0x42de54
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 0x42dc02
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 0x42dc02
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 0x42dd94
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.00435a70
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.00435a70
cmp dword [eax + 0x38], 3
jle 0x42dd72
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.00435a70
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 0x454cd8
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.00402390
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.00402690
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.004293c0
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.004355a0
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x284]
add ecx, 0x2c0
call fcn.00435a70
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 0x42d959
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 0x42dddc
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.00435a70
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.00436240
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 0x42df24
lea edx, [ebp - 0x27c]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x260], esp
push 0x2a
push 0x454d18
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.00402390
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.004025c0
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.004293c0
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.004355a0
mov dword [ebp - 0x280], 0x80004005
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00436240
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.00449600
mov esp, ebp
pop ebp
ret 8