Function at 0x10007510
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read file on windows
Read http header
Receive http response
Set http header
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4858
call fcn.1001a150
mov eax, dword [0x10029494]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov edx, str.ENTERING_________________________________________EHUploadFileNeo
mov esi, 0x1002c2c8
mov dword [ebp - 0x4814], edi
mov dword [ebp - 0x482c], eax
call fcn.10001830
call fcn.1000aa60
push str.Uploading_File__
lea ecx, [ebp - 0x300c]
push 0x400
push ecx
call fcn.1000bb31
add esp, 0xc
push edi
lea edx, [ebp - 0x300c]
push 0x400
push edx
call fcn.1000c903
add esp, 0xc
lea edx, [ebp - 0x300c]
call fcn.10001830
push 0
push 0
push 0
push 0
push str.OTPDoQuery
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x4828], edi
test edi, edi
jne 0x100075ce
mov edx, str.ERROR________________________hSession__WinHttpOpen__NULL
call fcn.10001830
mov edx, str.LEAVING_________________________________________EHUploadFileNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 0x186a0
push 0x186a0
push 0x186a0
push 0x186a0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x10007620
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, str.ERROR________________________bResults__WinHttpSetTimeouts__FALSE
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING_________________________________________EHUploadFileNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 0x1002bac0
lea eax, [ebp - 0x480c]
push 0x400
push eax
call fcn.1000bb31
add esp, 0xc
push 0
push 0x1bb
lea ecx, [ebp - 0x480c]
push ecx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
mov dword [ebp - 0x4810], esi
test esi, esi
jne 0x1000768d
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, str.ERROR________________________hConnect__WinHttpConnect__NULL
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING_________________________________________EHUploadFileNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 0x800000
push 0
push 0
push 0
push str._downloads_upload.php
push str.POST
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x4818], ebx
test ebx, ebx
jne 0x100076ed
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push esi
call edi
mov edx, str.ERROR________________________hRequest__WinHttpOpenRequest__NULL
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING_________________________________________EHUploadFileNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 0
push 0x77
push str.Accept:_text__r_nContent_Type:_multipart_form_data__boundary___________________________7d13a23b368_r_nUser_Agent:_VCApp_r_n
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1000773c
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push esi
call edi
push ebx
call edi
mov edx, str.ERROR________________________bResults___WinHttpAddRequestHeaders__FALSE
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING_________________________________________EHUploadFileNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 4
lea edx, [ebp - 0x4848]
push edx
push 0x1f
push ebx
mov dword [ebp - 0x4848], 0x3300
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x10007797
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push esi
call edi
push ebx
call edi
mov edx, str.ERROR________________________bResults__WinHttpSetOption__FALSE
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING_________________________________________EHUploadFileNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4814]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10007839
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
mov ecx, dword [ebp - 0x4810]
push ecx
call esi
mov edx, dword [ebp - 0x4818]
push edx
call esi
push str.ERROR______________hFile__INVALID_HANDLE_VALUE___FileName__
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.1000bb31
mov ecx, dword [ebp - 0x4814]
add esp, 0xc
push ecx
push 0x400
lea edx, [ebp - 0x80c]
push edx
call fcn.1000c903
add esp, 0xc
lea edx, [ebp - 0x80c]
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING_________________________________________EHUploadFileNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 2
lea eax, [ebp - 0x4820]
xor esi, esi
push eax
push esi
push ebx
mov dword [ebp - 0x4824], esi
mov dword [ebp - 0x4820], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x4824], eax
cmp eax, 0xffffffff
jne 0x10007878
lea esi, [ebp - 0x4824]
call fcn.10004dc0
mov dword [ebp - 0x4830], edx
xor esi, esi
jmp 0x10007884
mov ecx, dword [ebp - 0x4820]
mov dword [ebp - 0x4830], ecx
push esi
lea edx, [ebp - 0x4820]
push edx
push esi
push ebx
mov dword [ebp - 0x4834], eax
mov dword [ebp - 0x4824], esi
mov dword [ebp - 0x4820], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x4824], eax
cmp eax, 0xffffffff
jne 0x100078bc
lea esi, [ebp - 0x4824]
call fcn.10004dc0
mov eax, dword [ebp - 0x4834]
inc eax
push eax
call fcn.1000ba7a
mov edx, dword [ebp - 0x4834]
add esp, 4
push 0
lea ecx, [ebp - 0x483c]
push ecx
mov esi, eax
push edx
push esi
push ebx
mov dword [ebp - 0x4820], esi
mov dword [ebp - 0x483c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10007946
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
mov eax, dword [ebp - 0x4810]
push eax
call esi
mov ecx, dword [ebp - 0x4818]
push ecx
call esi
push str.ERROR_____________ReadFile__false___FileName__
lea edx, [ebp - 0x80c]
push 0x400
push edx
call fcn.1000bb31
mov eax, dword [ebp - 0x4814]
add esp, 0xc
push eax
push 0x400
lea ecx, [ebp - 0x80c]
push ecx
jmp 0x10007804
mov eax, dword [ebp - 0x483c]
xor ecx, ecx
cmp dword [ebp - 0x4834], eax
jne 0x1000795e
cmp dword [ebp - 0x4830], ecx
je 0x100079aa
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
mov edx, dword [ebp - 0x4810]
push edx
call esi
mov eax, dword [ebp - 0x4818]
push eax
call esi
push str.ERROR_____________if_nFileLen_dwFileRead___false___FileName__
lea ecx, [ebp - 0x80c]
push 0x400
push ecx
call fcn.1000bb31
mov edx, dword [ebp - 0x4814]
add esp, 0xc
push edx
push 0x400
lea eax, [ebp - 0x80c]
push eax
jmp 0x10007804
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x4834]
push str._r_n_____________________________7d13a23b368_r_nContent_Disposition:_form_data_name_fileToUpload__filename_
lea ecx, [ebp - 0xc0c]
push 0x400
push ecx
mov byte [ebx + esi], 0
call fcn.1000dadf
mov edx, dword [ebp - 0x4814]
add esp, 0xc
push edx
lea eax, [ebp - 0x280c]
push 0x400
push eax
call fcn.1000bb31
mov edx, dword [ebp - 0x482c]
add esp, 0xc
lea ecx, [ebp - 0x280c]
call fcn.10007230
lea eax, [ebp - 0x280c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007a10
sub eax, edx
sar eax, 1
inc eax
push eax
lea ecx, [ebp - 0x280c]
push ecx
push 0x400
lea edx, [ebp - 0x200c]
push edx
lea eax, [ebp - 0x4850]
push eax
call fcn.1000c8e3
add esp, 0x14
lea ecx, [ebp - 0x200c]
push ecx
lea edx, [ebp - 0xc0c]
push 0x400
push edx
call fcn.1000db3e
add esp, 0xc
push str.___r_nContent_Type:_application_octet_stream_r_n_r_n
lea eax, [ebp - 0xc0c]
push 0x400
push eax
call fcn.1000db3e
lea edi, [ebp - 0xc0c]
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10007a80
push str.Content_Disposition:_form_data_name_UploadFolder___r_n_r_n
sub edi, ecx
lea ecx, [ebp - 0x100c]
push 0x400
push ecx
call fcn.1000dadf
mov eax, 0x1002b2c0
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007ab0
sub eax, edx
sar eax, 1
inc eax
push eax
push 0x1002b2c0
push 0x400
lea edx, [ebp - 0x180c]
push edx
lea eax, [ebp - 0x484c]
push eax
call fcn.1000c8e3
add esp, 0x14
lea ecx, [ebp - 0x180c]
push ecx
lea edx, [ebp - 0x100c]
push 0x400
push edx
call fcn.1000db3e
add esp, 0xc
push str._r_n_____________________________7d13a23b368___r_n
lea eax, [ebp - 0x100c]
push 0x400
push eax
call fcn.1000db3e
lea eax, [ebp - 0x100c]
add esp, 0xc
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10007b20
sub eax, ecx
add ebx, eax
lea ebx, [ebx + edi + 0x2c]
push ebx
mov dword [ebp - 0x482c], eax
call fcn.1000ba7a
add esp, 4
push edi
lea ecx, [ebp - 0xc0c]
mov esi, eax
push ecx
push esi
call fcn.1000f170
mov edx, dword [ebp - 0x4834]
mov eax, dword [ebp - 0x4820]
add esp, 0xc
push edx
push eax
lea ecx, [esi + edi]
push ecx
call fcn.1000f170
mov eax, dword [ebp - 0x4834]
add esp, 0xc
add eax, esi
push 0x2c
mov dword [ebp - 0x4830], eax
add eax, edi
push str._r_n_____________________________7d13a23b368_r_n
push eax
call fcn.1000f170
mov eax, dword [ebp - 0x482c]
mov edx, dword [ebp - 0x4830]
add esp, 0xc
push eax
lea ecx, [ebp - 0x100c]
push ecx
lea eax, [edx + edi + 0x2c]
push eax
call fcn.1000f170
mov ecx, dword [ebp - 0x4820]
add esp, 0xc
push ecx
call fcn.1000bd44
mov edi, dword [ebp - 0x4818]
add esp, 4
push 0
push ebx
push ebx
push esi
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push esi
mov ebx, eax
call fcn.1000bd44
add esp, 4
test ebx, ebx
jne 0x10007c05
mov edx, dword [ebp - 0x4828]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x4810]
push eax
call esi
push edi
call esi
mov edx, str.ERROR________________________bResults__WinHttpSendRequest__FALSE
jmp 0x10007812
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10007c37
mov ecx, dword [ebp - 0x4828]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x4810]
push edx
call esi
push edi
call esi
mov edx, str.ERROR________________________bResults__WinHttpReceiveResponse__FALSE
jmp 0x10007812
push 0
lea eax, [ebp - 0x4844]
push eax
lea ecx, [ebp - 0x4838]
push ecx
push 0
push 0x20000013
push edi
mov dword [ebp - 0x4838], 0
mov dword [ebp - 0x4844], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x10007c92
mov edx, dword [ebp - 0x4828]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x4810]
push eax
call esi
push edi
call esi
mov edx, str.ERROR________________________bResults__WinHttpQueryHeaders__FALSE
jmp 0x10007812
cmp dword [ebp - 0x4838], 0xc8
je 0x10007cc3
mov ecx, dword [ebp - 0x4828]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x4810]
push edx
call esi
push edi
call esi
mov edx, str.ERROR________________________dwStatusCode_HTTP_STATUS_OK
jmp 0x10007812
cmp byte [0x1002f2d4], 0
je 0x10007cfa
mov eax, dword [ebp - 0x4828]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x4810]
push ecx
call esi
push edi
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 0x1002d2c8
lea edx, [ebp - 0x400c]
push 0x400
push edx
call fcn.1000bb31
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
lea ecx, [ebp - 0x380c]
push 0x400
push ecx
call fcn.1000bb31
add esp, 0xc
push str._responsefile.txt
lea edx, [ebp - 0x380c]
push 0x400
push edx
call fcn.1000c903
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 0
push 4
lea eax, [ebp - 0x380c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x482c], ebx
cmp ebx, 0xffffffff
jne 0x10007dac
mov ecx, dword [ebp - 0x4828]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x4810]
push edx
call esi
push edi
call esi
push str.ERROR______________hFile__INVALID_HANDLE_VALUE___FileName__
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.1000bb31
lea ecx, [ebp - 0x380c]
jmp 0x100077f4
mov edx, dword [ebp - 0x4814]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007db7
sub eax, esi
sar eax, 1
inc eax
push eax
push edx
push 0x400
lea eax, [ebp - 0x1c0c]
push eax
lea ecx, [ebp - 0x4854]
push ecx
call fcn.1000c8e3
mov eax, dword [0x1002f310]
add esp, 0x14
lea edx, [ebp - 0x1c0c]
push edx
push eax
lea ecx, [ebp - 0x140c]
push str._r_n_u____s
push ecx
call fcn.1000dbab
lea eax, [ebp - 0x140c]
add esp, 0x10
inc dword [0x1002f310]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10007e14
xor esi, esi
push esi
lea edx, [ebp - 0x4840]
push edx
sub eax, ecx
push eax
lea eax, [ebp - 0x140c]
push eax
push ebx
mov dword [ebp - 0x4840], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10007e51
mov edx, str.ERROR____________________WriteFile_failed_for_response_file
mov esi, 0x1002c2c8
call fcn.10001830
xor esi, esi
lea ecx, [ebp - 0x4818]
push ecx
push edi
mov dword [ebp - 0x4818], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10007e51
mov eax, dword [ebp - 0x4818]
cmp eax, esi
je 0x10007f0e
push eax
mov dword [ebp - 0x4814], esi
call fcn.1000ba7a
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x4818]
lea edx, [ebp - 0x4814]
push edx
push eax
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10007efa
mov edx, dword [ebp - 0x4814]
mov eax, dword [ebp - 0x482c]
push 0
lea ecx, [ebp - 0x4820]
push ecx
push edx
push ebx
push eax
mov dword [ebp - 0x4820], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10007edd
mov edx, str.ERROR____________________WriteFile_failed_for_response_file
mov esi, 0x1002c2c8
call fcn.10001830
mov ecx, dword [ebp - 0x4814]
cmp ecx, dword [ebp - 0x4820]
je 0x10007efa
mov edx, str.ERROR_____________________dwBytes_dwBytesWritten__failed_for_response_file
mov esi, 0x1002c2c8
call fcn.10001830
push ebx
call fcn.1000bd44
mov ebx, dword [ebp - 0x482c]
add esp, 4
jmp 0x10007e4f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x4828]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x4810]
push eax
call esi
push edi
call esi
mov edx, str.LEAVING_________________________________________EHUploadFileNeo
mov esi, 0x1002c2c8
call fcn.10001830
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1000bb22
mov esp, ebp
pop ebp
ret