Function at 0x10035200
Capabilities:
Check if file exists
Copy file
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c4dde
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xc8], 0
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x10035900
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0xc0], esi
mov dword [ebp - 4], 0
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x1003590a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0xd4], eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0xd8], ecx
mov eax, dword [ebp - 0xb0]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
or edi, 0xffffffff
mov byte [ebp - 4], 1
test eax, eax
je 0x1003569c
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003569c
push 0
push 0x80
push 3
push 0
push 1
push 1
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0xc4], edi
test edi, edi
je 0x100352ee
cmp edi, 0xffffffff
jne 0x10035583
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x10035914
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xb8], eax
mov eax, str._basev6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
test eax, 0xffff0000
jne 0x1003532e
movzx eax, ax
push eax
call fcn.1000f350
jmp 0x10035338
push str._basev6
call fcn.10031880
push 1
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.100336a0
add esp, 0xc
mov edx, dword [ebp - 0xb8]
or edi, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10035378
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xac]
push 1
push eax
call fcn.1016f450
push dword [eax]
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 6
push str._s_dir
push eax
call fcn.100120d0
mov edx, dword [ebp - 0xac]
add esp, 0x14
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100353c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xb4]
mov ecx, 1
sub ecx, dword [esi - 4]
mov dword [ebp - 0xac], eax
mov eax, dword [esi - 8]
sub eax, 0x105
or eax, ecx
jge 0x100353f7
push 0x105
lea ecx, [ebp - 0xc0]
call fcn.1000f500
mov esi, dword [ebp - 0xc0]
cmp dword [esi - 8], 0x105
jl 0x1003591e
push dword [ebp - 0xb0]
xor eax, eax
mov dword [esi - 0xc], 0x105
mov word [esi + 0x20a], ax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push dword [ebp - 0xac]
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push esi
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10035545
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003551b
push 0x1a
push str.CommonCommonAlgorithm.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000cf00
mov byte [ebp - 4], 8
call fcn.100a97a0
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0x170]
push 0x69
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10007f90
mov edi, eax
push str.error_CreateFile_
push edi
mov byte [ebp - 4], 9
call fcn.10008dd0
push dword [ebp - 0xb0]
push edi
call fcn.1000fad0
push 0x101d67c4
push edi
call fcn.10008dd0
mov ecx, dword [ebp - 0xac]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x170]
call fcn.10008e90
lea ecx, [ebp - 0x28]
call fcn.10007310
lea ecx, [ebp - 0x40]
call fcn.10007310
or edi, 0xffffffff
mov edx, dword [ebp - 0xb4]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003568b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1003568b
push 0
push 0x80
push 3
push 0
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0xc4], edi
test edi, edi
je 0x1003581c
cmp edi, 0xffffffff
je 0x1003581c
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.1000e5b0
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.10038680
add esp, 8
lea eax, [ebp - 0xd0]
xorps xmm0, xmm0
movq qword [ebp - 0xd0], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10035709
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10035688
push 0x1a
push str.CommonCommonAlgorithm.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000cf00
mov byte [ebp - 4], 0xe
call fcn.100a97a0
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0x170]
push 0x7c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10007f90
mov edi, eax
push str.error_GetFileSizeEx_
push edi
mov byte [ebp - 4], 0xf
call fcn.10008dd0
push dword [ebp - 0xb0]
push edi
call fcn.1000fad0
push 0x101d67c4
push edi
call fcn.10008dd0
mov ecx, dword [ebp - 0xac]
mov eax, dword [ecx]
add esp, 0x18
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x170]
call fcn.10008e90
lea ecx, [ebp - 0x40]
call fcn.10007310
lea ecx, [ebp - 0x28]
call fcn.10007310
or edi, 0xffffffff
mov eax, dword [ebp - 0xc4]
test eax, eax
je 0x1003569c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100356ae
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0xd4]
mov eax, edi
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100356cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x100356e8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xd0]
or eax, dword [ebp - 0xcc]
je 0x100357f1
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.100350c0
add esp, 0xc
test eax, eax
jne 0x100357f1
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10035688
push 0x1a
push str.CommonCommonAlgorithm.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000cf00
mov byte [ebp - 4], 0x11
call fcn.100a97a0
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0x170]
push 0x84
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10007f90
mov edi, eax
push str.FileMapMd5_file:_
push edi
mov byte [ebp - 4], 0x12
call fcn.10008dd0
push dword [ebp - 0xb0]
push edi
call fcn.1000fad0
push str.__failed
push edi
call fcn.10008dd0
mov ecx, dword [ebp - 0xac]
jmp 0x10035664
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xc8], 1
push eax
call fcn.10038570
mov eax, dword [ebp - 0xbc]
add esp, 4
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [eax], xmm0
jmp 0x10035688
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100358ef
push 0x1a
push str.CommonCommonAlgorithm.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000cf00
mov byte [ebp - 4], 0xb
call fcn.100a97a0
mov dword [ebp - 0xbc], eax
lea ecx, [ebp - 0x170]
push 0x70
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10007f90
mov edi, eax
push str.error_CreateFile_
push edi
mov byte [ebp - 4], 0xc
call fcn.10008dd0
push dword [ebp - 0xb0]
push edi
call fcn.1000fad0
push 0x101d67c4
push edi
call fcn.10008dd0
mov ecx, dword [ebp - 0xbc]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x170]
call fcn.10008e90
lea ecx, [ebp - 0x40]
call fcn.10007310
lea ecx, [ebp - 0x28]
call fcn.10007310
mov edx, dword [ebp - 0xb4]
add edx, 0xfffffff0
or edi, 0xffffffff
jmp 0x10035524
push 0x80004005
call fcn.10009b10
push 0x80004005
call fcn.10009b10
push 0x80004005
call fcn.10009b10
push 0x80070057
call fcn.10009b10
int3