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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x302c
call fcn.1001a150
mov eax, dword [0x10029494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov edx, str.ENTERING________________________________________________EHGetListerStateNeo
mov esi, 0x1002c2c8
mov dword [ebp - 0x300c], edi
call fcn.10001830
call fcn.1000aa60
push 0
push 0
push 0
push 0
push str.OTPDoQuery
mov byte [edi], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
test ebx, ebx
jne 0x10008c89
mov edx, str.ERROR_____________hSession__WinHttpOpen__________FAILED
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHGetListerStateNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 0x186a0
push 0x186a0
push 0x186a0
push 0x186a0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x10008cdb
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, str.ERROR_____________bResults__WinHttpSetTimeouts__________FAILED
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHGetListerStateNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 0x1002bac0
lea eax, [ebp - 0x3008]
push 0x400
push eax
call fcn.1000bb31
add esp, 0xc
push 0
push 0x1bb
lea ecx, [ebp - 0x3008]
push ecx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
mov dword [ebp - 0x3018], esi
test esi, esi
jne 0x10008d48
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, str.ERROR_____________hConnect__WinHttpConnect__________FAILED
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHGetListerStateNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2008]
call fcn.10009a30
test eax, eax
jne 0x10008d8a
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, str.ERROR_____________GetServerUploadSystemName___________FAILED
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHGetListerStateNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push str._uploads_
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.1000bb31
add esp, 0xc
lea eax, [ebp - 0x2008]
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.1000c903
add esp, 0xc
push str._ltup_download_winlt.ltup
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.1000c903
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x2808]
push 0x400
push ecx
call fcn.1000bb31
add esp, 0xc
push 0x800000
push 0
push 0
push 0
lea edx, [ebp - 0x2808]
push edx
push 0x100214c4
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
jne 0x10008e4e
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call edi
push esi
call edi
mov edx, str.ERROR_____________hRequest__WinHttpOpenRequest__________FAILED
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHGetListerStateNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0x3028]
push eax
push 0x1f
push edi
mov dword [ebp - 0x3028], 0x3300
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x10008ea9
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
push esi
call ebx
push edi
call ebx
mov edx, str.ERROR_____________bResults__WinHttpSetOption__________FAILED
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHGetListerStateNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x10008efb
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
push esi
call ebx
push edi
call ebx
mov edx, str.ERROR_____________bResults__WinHttpSendRequest__________FAILED
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHGetListerStateNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10008f43
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
push esi
call ebx
push edi
call ebx
mov edx, str.ERROR_____________bResults__WinHttpReceiveResponse__________FAILED
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHGetListerStateNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x302c]
push ecx
lea edx, [ebp - 0x301c]
push edx
push 0
push 0x20000013
push edi
mov dword [ebp - 0x301c], 0
mov dword [ebp - 0x302c], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x10008fb4
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
push esi
call ebx
push edi
call ebx
mov edx, str.ERROR_____________bResults__WinHttpQueryHeaders__________FAILED
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHGetListerStateNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x301c]
cmp eax, 0xc8
je 0x1000900c
cmp eax, 0x194
jne 0x10008fd1
mov eax, dword [ebp - 0x300c]
mov byte [eax], 1
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
push esi
call ebx
push edi
call ebx
mov edx, str.ERROR_____________dwStatusCode___HTTP_STATUS_OK__________FAILED
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHGetListerStateNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x1808]
call fcn.100022e0
mov ecx, dword [0x1002f2cc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea edx, [ebp - 0x1808]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x300c], eax
cmp eax, 0xffffffff
jne 0x100090c5
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
mov eax, dword [ebp - 0x3018]
push eax
call esi
push edi
call esi
push str.ERROR______________hFile__INVALID_HANDLE_VALUE___FileName__
lea ecx, [ebp - 0x1008]
push 0x400
push ecx
call fcn.1000bb31
add esp, 0xc
lea edx, [ebp - 0x1808]
push edx
lea eax, [ebp - 0x1008]
push 0x400
push eax
call fcn.1000c903
add esp, 0xc
lea edx, [ebp - 0x1008]
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.Leaving______________________________________________________________EHGetListerStateNeo
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3010]
push ecx
push edi
mov dword [ebp - 0x3010], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x100090c5
mov eax, dword [ebp - 0x3010]
cmp eax, esi
je 0x10009190
push eax
mov dword [ebp - 0x3014], esi
call fcn.1000ba7a
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x3010]
lea edx, [ebp - 0x3014]
push edx
push eax
push esi
push edi
mov dword [ebp - 0x3020], esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10009180
mov edx, dword [ebp - 0x3014]
mov eax, dword [ebp - 0x300c]
push 0
lea ecx, [ebp - 0x3024]
push ecx
push edx
push esi
push eax
mov dword [ebp - 0x3024], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000915d
mov edx, str.ERROR____________________WriteFile_failed_for_response_file
mov esi, 0x1002c2c8
call fcn.10001830
mov esi, dword [ebp - 0x3020]
mov ecx, dword [ebp - 0x3014]
cmp ecx, dword [ebp - 0x3024]
je 0x10009180
mov edx, str.ERROR_____________________dwBytes_dwBytesWritten__failed_for_response_file
mov esi, 0x1002c2c8
call fcn.10001830
mov esi, dword [ebp - 0x3020]
push esi
call fcn.1000bd44
add esp, 4
xor esi, esi
jmp 0x100090c5
mov edx, dword [ebp - 0x300c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1002f2cc]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
mov ecx, dword [ebp - 0x3018]
push ecx
call esi
push edi
call esi
mov edx, str.LEAVING________________________________________________EHGetListerStateNeo
mov esi, 0x1002c2c8
call fcn.10001830
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1000bb22
mov esp, ebp
pop ebp
ret