Function at 0x100013f9
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f0
push ebx
push esi
push edi
push str.hulocal.cpp:_V3Net_UpdateFromFolder_
push 1
pop edi
push edi
call fcn.100046ca
mov ebx, dword [ebp + 0x14]
pop ecx
test ebx, ebx
pop ecx
je 0x100017dd
cmp byte [ebx], 0
je 0x100017dd
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x100017dd
cmp byte [eax], 0
je 0x100017dd
mov esi, 0x420
lea eax, [ebp - 0x7f0]
push esi
push 0
push eax
call fcn.100091c0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x7f0], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x7ec], 0x14
mov dword [ebp - 0x7e8], eax
je 0x10001487
push 0x10
lea eax, [ebp - 0x7e4]
push dword [ebp + 0xc]
push eax
call esi
mov eax, dword [ebp + 0x10]
push 0x400
mov dword [ebp - 0x7d4], eax
lea eax, [ebp - 0x7d0]
push ebx
push eax
call esi
lea eax, [ebp - 0x7d0]
push eax
lea eax, [ebp - 0x7e4]
push dword [ebp - 0x7d4]
push eax
push dword [ebp - 0x7e8]
push dword [ebp - 0x7ec]
push dword [ebp - 0x7f0]
push str.hulocal.cpp:V3Net_GetUpdateData__u__08x__d__s__d__s_
push edi
call fcn.100046ca
lea eax, [ebp - 0x7f0]
push eax
call sym.v3hunt.dll_V3Net_GetUpdateData
mov ebx, eax
add esp, 0x24
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.hulocal.cpp:V3Net_GetUpdateData_u
push edi
mov dword [ebp + 0xc], eax
call fcn.100046ca
add esp, 0xc
test ebx, ebx
jne 0x10001511
lea eax, [ebp - 0x7d0]
push eax
push dword [ebp + 0xc]
push 4
jmp 0x100017e2
push ebx
mov dword [ebp - 0x2cc], 0x1c8
call sym.v3hunt.dll_V3Net_GetCount
mov esi, eax
pop ecx
dec esi
mov edi, 0x104
cmp esi, 0xffffffff
jae 0x100015b3
lea eax, [ebp - 0x2cc]
push eax
push esi
push ebx
call sym.v3hunt.dll_V3Net_GetAt
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push eax
call fcn.10007fff
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.10007fff
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x2cc]
push eax
call sym.v3hunt.dll_V3Net_CompareFileInfo
add esp, 0x34
cmp eax, 2
je 0x100015ad
push esi
push ebx
call sym.v3hunt.dll_V3Net_RemoveAt
pop ecx
lea eax, [ebp - 0x2bc]
pop ecx
push eax
push str.hulocal.cpp:V3Net_RemoveAt__s_
push 1
call fcn.100046ca
add esp, 0xc
dec esi
jmp 0x1000152a
cmp dword [ebp + 0x1c], 0
je 0x100015e0
cmp dword [ebp + 0x20], 0
je 0x100015e0
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ebx
call sym.v3hunt.dll_V3Net_GetEngineDate
add esp, 0xc
push dword [ebp + 0x1c]
push str.hulocal.cpp:EngineDate_s
push 1
call fcn.100046ca
add esp, 0xc
push ebx
call sym.v3hunt.dll_V3Net_GetCount
pop ecx
mov ebx, eax
push ebx
push str.hulocal.cpp:V3Net_GetCount_____d
push 1
call fcn.100046ca
add esp, 0xc
test ebx, ebx
jne 0x10001604
xor eax, eax
jmp 0x100017ea
cmp dword [ebp + 0x24], 0
mov esi, dword [ebp + 0x28]
je 0x1000161c
test esi, esi
je 0x1000161c
and dword [esi + 8], 0
push esi
mov dword [esi + 4], ebx
call dword [ebp + 0x24]
and dword [ebp + 0x1c], 0
test ebx, ebx
jbe 0x100017ab
lea eax, [ebp - 0x2cc]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 8]
call sym.v3hunt.dll_V3Net_GetAt
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x104]
push dword [ebp + 0x14]
push edi
push eax
call fcn.10007fff
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.10007fff
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x3d0]
push dword [ebp + 0x18]
push edi
push eax
call fcn.10007fff
lea eax, [ebp - 0x3d0]
push eax
call fcn.1000790a
add esp, 0x40
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x3d0]
push eax
lea eax, [ebp - 0x3d0]
push edi
push eax
call fcn.10007fff
add esp, 0x10
lea eax, [ebp - 0x3d0]
push eax
lea eax, [ebp - 0x104]
push eax
push str.hulocal.cpp:CopyFile__s__s_
push 1
call fcn.100046ca
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x2cc]
push eax
call sym.v3hunt.dll_V3Net_IsFileEqual
add esp, 0x18
test eax, eax
je 0x10001768
lea eax, [ebp - 0x3d0]
push 0
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10001778
lea eax, [ebp - 0x3d0]
push eax
lea eax, [ebp - 0x2cc]
push eax
call sym.v3hunt.dll_V3Net_IsFileEqual
pop ecx
test eax, eax
pop ecx
je 0x1000178a
cmp dword [ebp + 0x24], 0
je 0x1000175a
test esi, esi
je 0x1000175a
mov ecx, dword [esi + 0xc]
inc dword [esi + 8]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x10001752
imul eax, eax, 0x64
cdq
idiv dword [esi + 4]
push eax
lea eax, [ebp - 0x2bc]
push eax
push str._s___d___
push ecx
push dword [esi + 0x10]
call fcn.10009161
add esp, 0x14
push esi
call dword [ebp + 0x24]
test eax, eax
jne 0x10001797
inc dword [ebp + 0x1c]
cmp dword [ebp + 0x1c], ebx
jb 0x10001628
jmp 0x100017ab
lea eax, [ebp - 0x2bc]
push eax
push 0x570
push 5
jmp 0x100017a0
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
jmp 0x100017a0
lea eax, [ebp - 0x2bc]
push eax
push 0x17
push 7
jmp 0x100017a0
push 0
push 0x4c7
push 3
call fcn.10002bab
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x24], 0
je 0x100017bd
test esi, esi
je 0x100017bd
or dword [esi + 8], 0xffffffff
push esi
call dword [ebp + 0x24]
push dword [ebp + 8]
call sym.v3hunt.dll_V3Net_CloseHandle
pop ecx
push dword [ebp + 0xc]
push str.hulocal.cpp:V3Net_UpdateFromFolder___d
push 1
call fcn.100046ca
mov eax, dword [ebp + 0xc]
add esp, 0xc
jmp 0x100017ea
push 0
push 0x57
push edi
call fcn.10002bab
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret