Function at 0x5abdd0
Capabilities:
Check if file exists
Create thread
Prepare http request
Read http header
Receive http response
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x600460
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xd0], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xdc], edi
cmp dword [edi], 1
jb 0x5ac973
cmp dword [edi + 8], 0xa
lea eax, [edi + 8]
mov dword [ebp - 0xf0], eax
jb 0x5ac973
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x3c], xmm0
call fcn.005dc5e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movq qword [ebp - 0x48], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x78]
movq qword [ebp - 0x78], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x64]
movq qword [ebp - 0x64], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x30], xmm0
call fcn.005dc5e0
push 4
push 0x20
push 0x6ed470
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.005d9cd0
mov eax, dword [edi + 4]
cmp eax, 9
jne 0x5abedf
push str._vtapi_v2_url_scan
jmp 0x5abf48
cmp eax, 0x11
jne 0x5abeeb
push str._vtapi_v2_url_report
jmp 0x5abf48
cmp eax, 0x12
je 0x5abf43
cmp eax, 0x22
je 0x5abf3c
cmp eax, 0x24
je 0x5abf3c
cmp eax, 0xc
jne 0x5abf06
push str._vtapi_v2_file_scan
jmp 0x5abf48
cmp eax, 0x14
je 0x5abf43
cmp eax, 0x40
jne 0x5abf5d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.005dc190
push eax
push str._partners_sysinternals_file_reports_apikey
lea ecx, [ebp - 0x3c]
call fcn.005dc200
jmp 0x5abf50
push str._vtapi_v2_file_rescan
jmp 0x5abf48
push str._vtapi_v2_file_report
lea ecx, [ebp - 0x3c]
call fcn.005dc510
push 0
mov ecx, esi
call fcn.005ac9a0
test al, al
jne 0x5abf67
mov edi, 0xfffffffb
jmp 0x5ac93f
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0x14], 0
call fcn.005b0490
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
xor esi, esi
movq qword [ebp - 0xa4], xmm0
xor edi, edi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa0], esi
mov byte [ebp - 4], 7
cmp dword [ebp + 0xc], edi
je 0x5abfd9
movlpd qword [ebp - 0xac], xmm0
mov ecx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xac]
jmp 0x5ac077
call fcn.005d0460
mov dword [ebp - 0xcc], edx
mov ecx, eax
mov edx, 0xe57a42bd
mov edi, 0xd6bf94d5
mul edx
mov dword [ebp - 0xac], eax
mov esi, edx
mov eax, ecx
mov ecx, 0xe57a42bd
mul edi
mov edi, eax
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xcc]
mul ecx
mov ecx, eax
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xcc]
mov edx, 0xd6bf94d5
mul edx
add ecx, esi
mov dword [ebp - 0xa8], edx
mov edx, dword [ebp - 0xe4]
adc edx, 0
mov dword [ebp - 0xcc], eax
mov esi, dword [ebp - 0xcc]
add edi, ecx
mov ecx, dword [ebp - 0xd4]
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xa8]
adc eax, eax
add esi, edx
adc ecx, eax
xor edi, edi
shrd esi, ecx, 0x17
mov dword [ebp - 0xcc], esi
mov eax, dword [ebp - 0xcc]
shr ecx, 0x17
xor esi, esi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x30]
push dword [eax]
mov eax, dword [ebp - 0xdc]
push 1
push dword [eax + 0x10]
call fcn.005d9d20
lea ecx, [ebp - 0x30]
call fcn.005dc3a0
cmp eax, 4
jl 0x5ac935
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
cmp eax, 0xc
jne 0x5ac2c2
lea ecx, [ebp - 0x30]
call fcn.005dbeb0
test al, al
jne 0x5ac935
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5ac935
lea ecx, [ebp - 0x30]
call fcn.005dc190
mov ecx, eax
call fcn.005e0e70
mov edi, eax
mov dword [ebp - 0xd4], edi
test edx, edx
jg 0x5ac935
jl 0x5ac10c
cmp edi, 0x2000000
ja 0x5ac935
xorps xmm0, xmm0
lea ecx, [ebp - 0x98]
movups xmmword [ebp - 0x98], xmm0
movups xmmword [ebp - 0x88], xmm0
call fcn.005e47e0
push 0
push 0x10
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.005dc190
push eax
lea ecx, [ebp - 0x98]
call fcn.005e4120
test eax, eax
je 0x5ac25b
xorps xmm0, xmm0
mov dword [ebp - 0xe0], str.Content_Type:_multipart_form_data__boundary________Carifred
push 1
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], 0
call fcn.005dc190
push eax
lea ecx, [ebp - 0x58]
call fcn.005dc570
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.005dbf40
push 0
push 0
push 0
push 0
push 0
push 0
push str.__r_nContent_Type:_application_x_msdownload_r_n_r_n
lea ecx, [ebp - 0x58]
call fcn.005dc190
push eax
push str._r_n__________Carifred_r_nContent_Disposition:_form_data__name_file___filename_
lea ecx, [ebp - 0x48]
call fcn.005dc190
push eax
push str.name_apikey__r_n_r_n
push str.__________Carifred_r_nContent_Disposition:_form_data_
lea ecx, [ebp - 0x24]
call fcn.005dc200
mov ecx, str._r_n__________Carifred__
call fcn.005d8c20
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xec], 0xffffffff
call fcn.005dc3a0
add eax, edi
add eax, dword [ebp - 0xe4]
mov dword [ebp - 0xcc], eax
lea edi, [eax + 1]
test edi, edi
je 0x5ac214
push edi
call fcn.0041e7cf
mov esi, eax
mov dword [ebp - 0xa0], edi
mov eax, dword [ebp - 0xcc]
add esp, 4
mov dword [ebp - 0x9c], esi
sub esp, 8
mov dword [ebp - 0xa4], edi
lea ecx, [ebp - 0x24]
push eax
push esi
call fcn.005dbe60
lea ecx, [ebp - 0x24]
call fcn.005dc3a0
push dword [ebp - 0xd4]
add eax, esi
lea ecx, [ebp - 0x98]
push eax
mov dword [ebp - 0xa8], eax
call fcn.005e40c0
mov ecx, dword [ebp - 0xd4]
cmp eax, ecx
jae 0x5ac284
lea ecx, [ebp - 0x58]
call fcn.005dc430
lea ecx, [ebp - 0x98]
call fcn.00401e20
xor edi, edi
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x5ac937
push eax
call fcn.0041e1c3
add esp, 4
jmp 0x5ac937
push dword [ebp - 0xe4]
mov eax, dword [ebp - 0xa8]
add eax, ecx
push str._r_n__________Carifred__
push eax
call fcn.0041fb10
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.005dc430
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 7
call fcn.00401e20
mov eax, dword [ebp - 0xcc]
jmp 0x5ac3ad
cmp eax, 0x40
jne 0x5ac315
mov ecx, dword [ebp - 0xdc]
mov edx, 0x62c194
push 0
push 0
push 0
cmp dword [ecx], 1
mov eax, 0x627828
push 0
push 0
push 0
push 0
push 0
cmovbe eax, edx
lea ecx, [ebp - 0x30]
push 0
push eax
call fcn.005dc190
push eax
push 0x62782c
lea ecx, [ebp - 0x24]
call fcn.005dc200
mov dword [ebp - 0xe0], str.Content_Type:_application_json__charsetutf_8
jmp 0x5ac3a4
cmp eax, 9
jne 0x5ac348
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.005dc190
push eax
push str.apikey
lea ecx, [ebp - 0x30]
call fcn.005dc190
push eax
push 0x6299d8
jmp 0x5ac39c
test al, 1
je 0x5ac36c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.005dc190
push eax
push str.scan1apikey
jmp 0x5ac38e
test al, 0x36
je 0x5ac3a4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.005dc190
push eax
push str.apikey
lea ecx, [ebp - 0x30]
call fcn.005dc190
push eax
push str.resource
lea ecx, [ebp - 0x24]
call fcn.005dc200
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0xa8], ecx
cmp ecx, 0xc
je 0x5ac536
lea ecx, [ebp - 0x24]
call fcn.005dc3a0
cmp dword [ebp - 0xa8], 0x40
mov dword [ebp - 0xd4], eax
jne 0x5ac490
shl eax, 2
mov dword [ebp - 0xd4], eax
inc eax
cmp eax, dword [ebp - 0xa0]
jbe 0x5ac44e
push eax
mov dword [ebp - 0xe4], esi
call fcn.0041e7cf
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x9c], esi
test eax, eax
je 0x5ac43d
test edi, edi
je 0x5ac434
mov edx, eax
mov ecx, esi
sub edx, esi
nop dword [eax]
mov al, byte [ecx + edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edi, 1
jne 0x5ac420
mov eax, dword [ebp - 0xe4]
push eax
call fcn.0041e1c3
add esp, 4
mov ecx, dword [ebp - 0xd4]
lea eax, [ecx + 1]
mov dword [ebp - 0xa0], eax
jmp 0x5ac454
mov ecx, dword [ebp - 0xd4]
push 0
push 0
push ecx
mov edi, eax
lea ecx, [ebp - 0x24]
push esi
mov dword [ebp - 0xa4], edi
call fcn.005dc3a0
push eax
lea ecx, [ebp - 0x24]
call fcn.005dc190
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xcc], eax
mov byte [esi + eax], 0
jmp 0x5ac536
lea ecx, [eax + 1]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xa8], ecx
test ecx, ecx
je 0x5ac51b
mov dword [ebp - 0xcc], eax
cmp ecx, dword [ebp - 0xa0]
jbe 0x5ac51b
push ecx
mov dword [ebp - 0xe4], esi
call fcn.0041e7cf
mov edx, dword [ebp - 0xe4]
mov esi, eax
mov eax, dword [ebp - 0xd4]
add esp, 4
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xcc], eax
test edx, edx
je 0x5ac50f
mov dword [ebp - 0xcc], eax
test edi, edi
je 0x5ac506
mov ecx, esi
mov dword [ebp - 0xcc], eax
sub edx, esi
mov al, byte [ecx + edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edi, 1
jne 0x5ac4f2
mov edx, dword [ebp - 0xe4]
push edx
call fcn.0041e1c3
add esp, 4
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xa0], ecx
sub esp, 8
mov edi, ecx
mov dword [ebp - 0xa4], edi
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.005dbe60
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x5ac266
push 0x800000
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.005dc190
mov ecx, dword [ebp - 0xd0]
push eax
push str.POST
lea ecx, [ecx + 0xa0]
call fcn.005b0420
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push eax
lea ecx, [ebp - 0x14]
call fcn.005b0470
lea ecx, [ebp - 0x14]
call fcn.005b0420
mov ecx, eax
test ecx, ecx
je 0x5ac266
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 4], 0xc
jne 0x5ac5a2
push 0xea60
push 0xdbba0
jmp 0x5ac5ac
push 0x61a8
push 0x4e20
push 0x1388
push 0x1388
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
lea ecx, [ebp - 0x14]
call fcn.005b0420
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xec]
push 0
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xcc]
push 0
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xc8]
push eax
push 0x5aea90
push 0
push 0
mov dword [ebp - 0xbc], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
or eax, 0xffffffff
test esi, esi
cmove esi, eax
mov dword [ebp - 0xa8], esi
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x5ac67a
nop dword [eax + eax]
cmp dword [ebp - 0x4c], 0x103
jne 0x5ac67a
mov eax, dword [ebp - 0xd0]
cmp byte [eax + 0xa8], 0
jne 0x5ac671
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x5ac640
jmp 0x5ac67a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0xd0]
cmp byte [eax + 0xa8], 0
jne 0x5ac916
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xe0], 0xffff
mov dword [ebp - 0xb0], 0x80
call fcn.005b0420
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x5ac916
push 0x80
push 0
push 0
push 0
push 0x40
lea ecx, [ebp - 0x24]
call fcn.005db9a0
push eax
call fcn.00420090
add esp, 0xc
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0x24]
push 0
push eax
call fcn.005dc190
push eax
push 0
push 0x13
lea ecx, [ebp - 0x14]
call fcn.005b0420
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x5ac712
push 3
lea ecx, [ebp - 0x24]
call fcn.005da0f0
mov eax, dword [ebp - 0xd0]
cmp byte [eax + 0xa8], 0
je 0x5ac72b
mov edi, 0xfffffffd
jmp 0x5ac918
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.005b0420
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x5ac916
cmp dword [ebp - 0x18], 0
je 0x5ac916
push 0x62c260
lea ecx, [ebp - 0x24]
call fcn.005dc4c0
test al, al
je 0x5ac788
mov ecx, dword [ebp - 0xd0]
lea eax, [ebp - 0x6c]
push 0
push eax
push 0xb
push str.LastRequestTS
call fcn.005dc190
mov ecx, dword [ebp - 0xd0]
push eax
lea ecx, [ecx + 0x30]
call fcn.005d5e20
cmp dword [ebp - 0xa0], 0x10000
jae 0x5ac7ec
mov eax, dword [ebp - 0x9c]
push 0x10000
mov dword [ebp - 0xec], eax
call fcn.0041e7cf
mov edx, dword [ebp - 0xec]
add esp, 4
mov dword [ebp - 0x9c], eax
test edx, edx
je 0x5ac7e2
test edi, edi
je 0x5ac7d9
mov ecx, eax
sub edx, eax
mov al, byte [ecx + edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edi, 1
jne 0x5ac7c5
mov edx, dword [ebp - 0xec]
push edx
call fcn.0041e1c3
add esp, 4
mov dword [ebp - 0xa0], 0x10000
mov edi, dword [ebp - 0x9c]
push 0x10000
push 0
push edi
mov dword [ebp - 0xa4], 0x10000
call fcn.00420090
mov eax, dword [ebp - 0x18]
mov ecx, edi
add esp, 0xc
mov dword [ebp - 0xcc], ecx
cmp dword [ebp - 0xe0], eax
jb 0x5ac895
lea edx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0
push edx
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.005b0420
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x5ac895
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x5ac895
sub dword [ebp - 0xe0], eax
add dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x18], 0
cmp byte [eax + 0xa8], 0
jne 0x5ac8a4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.005b0420
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x5ac895
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xcc]
test eax, eax
jne 0x5ac817
mov eax, dword [ebp - 0xd0]
cmp byte [eax + 0xa8], 0
je 0x5ac8ab
mov edi, 0xfffffffd
jmp 0x5ac918
push ecx
push 0
push edi
lea ecx, [ebp - 0x64]
call fcn.005d9e30
mov ecx, 1
mov edi, 0xfffffffb
push 0
push 0
mov al, byte [eax + 8]
test al, al
mov byte [ebp - 0xd5], al
mov eax, dword [ebp - 0xdc]
cmovne edi, ecx
mov ecx, dword [ebp - 0xf0]
mov dword [eax], 0
call fcn.004033e0
xor ecx, ecx
mov eax, dword [eax + 8]
mov word [eax], cx
cmp byte [ebp - 0xd5], cl
je 0x5ac918
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xd0]
push dword [eax + 4]
lea eax, [ebp - 0x64]
push eax
call fcn.005abc20
mov edi, eax
jmp 0x5ac918
xor edi, edi
cmp esi, 0xffffffff
je 0x5ac268
test esi, esi
je 0x5ac268
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5ac268
xor edi, edi
lea ecx, [ebp - 0x14]
call fcn.005b0480
lea ecx, [ebp - 0x30]
call fcn.005dc430
lea ecx, [ebp - 0x64]
call fcn.005dc430
lea ecx, [ebp - 0x24]
call fcn.005dc430
lea ecx, [ebp - 0x78]
call fcn.005dc430
lea ecx, [ebp - 0x48]
call fcn.005dc430
lea ecx, [ebp - 0x3c]
call fcn.005dc430
mov eax, edi
jmp 0x5ac978
mov eax, 0xfffffffb
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.0041e1b5
mov esp, ebp
pop ebp
ret 8