Function at 0x10008660
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c2c
call fcn.1001a150
mov eax, dword [0x10029494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, str.ENTERING________________________________________________EHGetListerStateNeo
mov esi, 0x1002c2c8
mov dword [ebp - 0x2c18], eax
call fcn.10001830
call fcn.1000aa60
push 0
push 0
push 0
push 0
push str.OTPDoQuery
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
jne 0x100086d7
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 edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x10008729
push edi
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 ecx, [ebp - 0x2c08]
push 0x400
push ecx
call fcn.1000bb31
add esp, 0xc
push 0
push 0x1bb
lea edx, [ebp - 0x2c08]
push edx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0x2c24], ebx
test ebx, ebx
jne 0x10008796
push edi
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 - 0x2408]
call fcn.10009d10
test eax, eax
jne 0x100087d8
push edi
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._downloads_lister.php_sysname
lea eax, [ebp - 0x1408]
push 0x400
push eax
call fcn.1000bb31
add esp, 0xc
lea ecx, [ebp - 0x2408]
push ecx
lea edx, [ebp - 0x1408]
push 0x400
push edx
call fcn.1000c903
add esp, 0xc
lea eax, [ebp - 0x1408]
push eax
lea ecx, [ebp - 0x1c08]
push 0x400
push ecx
call fcn.1000bb31
add esp, 0xc
push 0x800000
push 0
push 0
push 0
lea edx, [ebp - 0x1c08]
push edx
push 0x100214c4
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
jne 0x10008883
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
push ebx
call esi
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 - 0x2c28]
push eax
push 0x1f
push esi
mov dword [ebp - 0x2c28], 0x3300
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x100088de
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push ebx
call edi
push esi
call edi
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 esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x10008930
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push ebx
call edi
push esi
call edi
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 esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10008978
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push ebx
call edi
push esi
call edi
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 - 0x2c20]
push ecx
lea edx, [ebp - 0x2c1c]
push edx
push 0
push 0x20000013
push esi
mov dword [ebp - 0x2c1c], 0
mov dword [ebp - 0x2c20], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x100089e9
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push ebx
call edi
push esi
call edi
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
cmp dword [ebp - 0x2c1c], 0xc8
je 0x10008a30
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push ebx
call edi
push esi
call edi
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
push 0xc00
lea eax, [ebp - 0xc08]
push 0
push eax
mov dword [ebp - 0x2c0c], 0
call fcn.100112a0
add esp, 0xc
lea ecx, [ebp - 0x2c10]
push ecx
push esi
mov dword [ebp - 0x2c10], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10008a50
mov eax, dword [ebp - 0x2c10]
test eax, eax
je 0x10008ae3
push eax
mov dword [ebp - 0x2c14], 0
call fcn.1000ba7a
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x2c10]
lea edx, [ebp - 0x2c14]
push edx
push eax
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10008acf
mov ecx, dword [ebp - 0x2c14]
mov edx, dword [ebp - 0x2c0c]
push ecx
lea eax, [ebp + edx - 0xc08]
push ebx
push eax
call fcn.1000f170
mov ecx, dword [ebp - 0x2c14]
add esp, 0xc
add dword [ebp - 0x2c0c], ecx
push ebx
call fcn.1000bd44
mov ebx, dword [ebp - 0x2c24]
add esp, 4
jmp 0x10008a50
mov edx, dword [ebp - 0x2c0c]
lea eax, [ebp - 0xc08]
push str.uploading
push eax
mov byte [ebp + edx - 0xc08], 0
call fcn.1001b9e0
add esp, 8
test eax, eax
je 0x10008b28
lea ecx, [ebp - 0xc08]
push str.complete
push ecx
call fcn.1001b9e0
add esp, 8
test eax, eax
je 0x10008b28
push str.NONE
jmp 0x10008b2f
lea ecx, [ebp - 0xc08]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c18]
push edx
push eax
call fcn.1000dadf
add esp, 0xc
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push ebx
call edi
push esi
call edi
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