Function at 0x4bea20
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x57a05b
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov edi, ecx
push edi
lea ecx, [esp + 0x6c]
mov dword [esp + 0x30], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
xor esi, esi
mov dword [esp + 0x90], esi
mov eax, dword [esp + 0x6c]
mov ebx, 8
cmp dword [esp + 0x80], ebx
jae 0x4bea8c
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bf02a
push esi
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 4
push eax
call dword [sym.imp.MSVCR80.dll_srand]
mov eax, dword [esp + 0x70]
add esp, 4
xor ebp, ebp
cmp dword [esp + 0x80], ebx
jae 0x4beac2
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x44]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4bec76
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov ebp, ecx
mov esi, eax
mov bl, 1
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.0040ff50
test bl, bl
mov byte [esp + 0x90], 1
je 0x4bec7d
test esi, esi
jg 0x4bec7d
jl 0x4beb17
cmp ebp, 0x1400000
ja 0x4bec7d
mov ecx, dword [esp + 0x28]
lea esi, [esp + 0x1c]
call fcn.004123e0
mov esi, eax
xor edi, edi
lea ebx, [esp + 0x20]
mov byte [esp + 0x90], 2
call fcn.004125d0
push eax
lea eax, [esp + 0x28]
push eax
mov ebx, str.datahttproot_files_
mov byte [esp + 0x98], 3
call fcn.0041a8a0
lea ecx, [esp + 0x20]
push esi
push ecx
mov ebx, eax
mov byte [esp + 0xa0], 4
call fcn.00413170
add esp, 0x10
mov byte [esp + 0x90], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4beb91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 7
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bebb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bebe1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5f
push 0x23
lea ecx, [esp + 0x20]
push ecx
call fcn.00412f40
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x90], 9
cmp dword [eax + 0x1964], 0
je 0x4bec43
mov ecx, dword [esp + 0x9c]
lea edx, [eax + 0x1918]
push edx
push ecx
add eax, 0x19dc
push eax
lea ebx, [esp + 0x50]
call fcn.0053db50
lea ecx, [esp + 0x44]
mov byte [esp + 0x90], 8
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4beff6
xor bl, bl
jmp 0x4beae5
mov ecx, dword [esp + 0x28]
lea esi, [esp + 0x1c]
call fcn.004123e0
push 0x5f
push 0x23
mov ecx, esi
push ecx
mov byte [esp + 0x9c], 0xa
call fcn.00412f40
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
lea edx, [esp + 0x20]
push edx
mov ecx, eax
call fcn.0040ff50
xor edi, edi
lea ebx, [esp + 0x40]
mov byte [esp + 0x90], 0xb
call fcn.004125d0
push eax
lea eax, [esp + 0x34]
push eax
mov ebx, str.datahttproot_files_
mov byte [esp + 0x98], 0xc
call fcn.0041a8a0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
mov ebx, eax
mov byte [esp + 0xa0], 0xd
call fcn.00413170
add esp, 0x10
mov byte [esp + 0x90], 0xf
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bed24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 0x10
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bed4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4beed0
mov ebp, dword [sym.imp.MSVCR80.dll_rand]
mov edx, dword [esp + 0x20]
push 0x58c320
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00417490
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx - 0xc]
call ebp
cdq
idiv esi
lea edi, [esp + 0x1c]
push edx
push 0x58cbe8
call fcn.00410c20
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
add esp, 8
push ecx
push eax
mov edx, edi
push edx
call fcn.00410240
xor edi, edi
lea ebx, [esp + 0x38]
call fcn.004125d0
push eax
lea eax, [esp + 0x38]
push eax
mov ebx, str.datahttproot_files_
mov byte [esp + 0x98], 0x11
call fcn.0041a8a0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
mov ebx, eax
mov byte [esp + 0xa0], 0x12
call fcn.00413170
add esp, 0x10
mov byte [esp + 0x90], 0x13
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4bee41
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4bee34
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4bee34
call fcn.00410660
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4bee2b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x4bee41
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00410570
mov byte [esp + 0x90], 0x12
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bee69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 0x11
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bee91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 0x10
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4beeb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4bed65
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
mov ecx, str._files_
call fcn.0040ff50
mov byte [esp + 0x90], 0x14
mov eax, dword [esi - 0xc]
push eax
push esi
lea eax, [esp + 0x2c]
push eax
call fcn.00410240
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x4bef08
lea eax, [esp + 0x6c]
mov edi, dword [esp + 0x24]
push eax
call fcn.00425ac0
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x90], 0x15
cmp dword [eax + 0x1964], 0
je 0x4bef54
mov ecx, dword [esp + 0x9c]
lea edx, [eax + 0x1918]
push edx
push ecx
add eax, 0x19dc
push eax
lea ebx, [esp + 0x50]
call fcn.0053db50
lea ecx, [esp + 0x44]
mov byte [esp + 0x90], 0x14
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x90], 0x10
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bef8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 0xb
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4befb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 0xa
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4befde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x90], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf002
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf02a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x90], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00569ed6
add esp, 0x80
ret 8