Function at 0x1005dd6e
Capabilities:
Check http status code
Parse pe header
Read http header
Receive http response

Disassembly:
push 0x240
mov eax, 0x1011f2af
call fcn.101108dc
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov al, byte [edi + 0x100]
test al, al
je 0x1005deca
lea ebx, [edi + 0x109]
mov al, byte [ebx]
test al, al
jne 0x1005deca
push dword [ebp - 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
mov al, 1
xchg byte [ebx], al
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
mov ebx, 0x1014a0f1
lea ecx, [ebp - 0x68]
push ebx
call fcn.1003a3c0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.1003a3c0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x2c]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1001524d
test esi, esi
je 0x1005debb
push ebx
lea ecx, [ebp - 0xb0]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 3
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.1003a3c0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.100e1c13
add esp, 0xc
mov ecx, dword [eax]
push str.OnCallBack
push str._s:_Request_cancellation_in_callback
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x1014488c]
call esi
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.1001524d
lea ecx, [ebp - 0x98]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.1001524d
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_unlock
jmp 0x1005f05e
mov eax, dword [ebp + 0x10]
cmp eax, 0x800
je 0x1005f39f
cmp eax, 0x20000
je 0x1005e7f0
cmp eax, 0x40000
je 0x1005e46f
cmp eax, 0x80000
je 0x1005e28e
cmp eax, 0x200000
je 0x1005e182
cmp eax, 0x400000
jne 0x1005f514
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
mov ebx, 0x1014a0f1
lea ecx, [ebp - 0x80]
push ebx
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 6
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 7
call fcn.1003a3c0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0xb0]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x98]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.1001524d
test esi, esi
je 0x1005e013
push ebx
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 9
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
call fcn.1003a3c0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.100e1c13
add esp, 0xc
mov ecx, dword [eax]
push str.OnCallBack
push str._s:_Request_sent
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1014488c]
call esi
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.1001524d
lea ecx, [ebp - 0x44]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001524d
mov esi, 0x101e2a68
push esi
call sub.MSVCP140.dll__Mtx_unlock
pop ecx
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1005f514
push esi
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0xfc]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0xc
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0xd
call fcn.1003a3c0
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0xcc]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0xe4]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.1001524d
test esi, esi
je 0x1005e155
push ebx
lea ecx, [ebp - 0x144]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0xf
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x10
call fcn.1003a3c0
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.100e1c13
add esp, 0xc
mov esi, dword [eax]
push str.OnCallBack
push str._s_WinHttpReceiveResponse_failed
push ebx
mov ecx, dword [esi + 0x24]
push eax
call dword [0x1014488c]
call dword [esi + 0x24]
add esp, 0x10
lea ecx, [ebp - 0x114]
call fcn.1001524d
lea ecx, [ebp - 0x12c]
call fcn.1001524d
lea ecx, [ebp - 0x144]
or dword [ebp - 4], 0xffffffff
call fcn.1001524d
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_unlock
pop ecx
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.1005dc0e
mov dword [edi + 0x110], eax
pop ecx
push dword [ebp - 0x4c]
mov ecx, edi
call fcn.1005f51c
jmp 0x1005f514
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
mov ebx, 0x1014a0f1
lea ecx, [ebp - 0x114]
push ebx
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0x5f
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0x60
call fcn.1003a3c0
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0x61
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0x144]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x12c]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.1001524d
test esi, esi
je 0x1005e155
push ebx
lea ecx, [ebp - 0xcc]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0x62
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x63
call fcn.1003a3c0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 0x64
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.100e1c13
add esp, 0xc
mov ecx, dword [eax]
push str.OnCallBack
push str._s:_Asynchronous_error_occured
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1014488c]
call esi
add esp, 0xc
jmp 0x1005e44e
test esi, esi
je 0x1005f514
mov eax, dword [edi + 0x10c]
lea ecx, [edi + 0x10]
xor ebx, ebx
mov dword [ebp - 0x50], eax
mov byte [eax + esi], bl
call fcn.10062c33
test al, al
jne 0x1005e30f
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0x58
push eax
push dword [ebp - 0x50]
call fcn.1003a3c0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
pop ecx
cmovae eax, dword [ebp - 0x2c]
pop ecx
push dword [ebp - 0x1c]
lea ecx, [edi + 0x124]
push eax
call fcn.1003a3c0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x1005e31e
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x2c]
call fcn.1003a3c0
pop ecx
pop ecx
jmp 0x1005e31e
push esi
push dword [ebp - 0x50]
lea ecx, [edi + 0x13c]
call fcn.1003a3c0
mov eax, dword [edi + 0x10c]
test eax, eax
je 0x1005e335
push eax
call fcn.101109bc
pop ecx
mov dword [edi + 0x10c], ebx
push ebx
push dword [ebp - 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1005f514
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
mov ebx, 0x1014a0f1
lea ecx, [ebp - 0x114]
push ebx
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0x59
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0x5a
call fcn.1003a3c0
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0x5b
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0x144]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x12c]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.1001524d
test esi, esi
je 0x1005e155
push ebx
lea ecx, [ebp - 0xcc]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0x5c
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x5d
call fcn.1003a3c0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 0x5e
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.100e1c13
add esp, 0xc
mov esi, dword [eax]
push str.OnCallBack
push str._s_WinHttpQueryDataAvailable_failed
push ebx
mov ecx, dword [esi + 0x24]
push eax
call dword [0x1014488c]
call dword [esi + 0x24]
add esp, 0x10
lea ecx, [ebp - 0xfc]
call fcn.1001524d
lea ecx, [ebp - 0xe4]
call fcn.1001524d
lea ecx, [ebp - 0xcc]
jmp 0x1005e14c
mov eax, dword [ecx]
push 0x101e2a68
mov dword [ebp - 0x50], eax
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
mov ebx, 0x1014a0f1
lea ecx, [ebp - 0x114]
push ebx
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0x46
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0x47
call fcn.1003a3c0
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0x48
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0x144]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x12c]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.1001524d
test esi, esi
je 0x1005e5a0
push ebx
lea ecx, [ebp - 0xcc]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0x49
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x4a
call fcn.1003a3c0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 0x4b
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.100e1c13
add esp, 0xc
mov ecx, dword [eax]
push str.OnCallBack
push str._s:_Data_available
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1014488c]
call esi
add esp, 0xc
lea ecx, [ebp - 0xfc]
call fcn.1001524d
lea ecx, [ebp - 0xe4]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.1001524d
mov esi, 0x101e2a68
push esi
call sub.MSVCP140.dll__Mtx_unlock
mov eax, dword [ebp - 0x50]
pop ecx
test eax, eax
jne 0x1005e6c1
push esi
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x80]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 0x4c
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x4d
call fcn.1003a3c0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0x4e
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0xb0]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x98]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.1001524d
test esi, esi
je 0x1005e6b2
push ebx
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0x4f
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x50
call fcn.1003a3c0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x51
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.100e1c13
add esp, 0xc
mov ecx, dword [eax]
push str.OnCallBack
push str._s:_reading_response_done
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1014488c]
call esi
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.1001524d
lea ecx, [ebp - 0x44]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001524d
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_unlock
jmp 0x1005e172
lea esi, [eax + 1]
push esi
call fcn.1003a3c0
push esi
push 0
push eax
mov dword [edi + 0x10c], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x50]
add esp, 0x10
push 0
push eax
push dword [edi + 0x10c]
push dword [ebp - 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpReadData]
test eax, eax
jne 0x1005f514
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x80]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 0x52
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x53
call fcn.1003a3c0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0x54
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0xb0]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x98]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.1001524d
test esi, esi
je 0x1005e155
push ebx
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0x55
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x56
call fcn.1003a3c0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x57
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.100e1c13
add esp, 0xc
mov esi, dword [eax]
push str.OnCallBack
push str._s_WinHttpReadData_failed
push ebx
mov ecx, dword [esi + 0x24]
push eax
call dword [0x1014488c]
call dword [esi + 0x24]
add esp, 0x10
lea ecx, [ebp - 0x68]
call fcn.1001524d
lea ecx, [ebp - 0x44]
jmp 0x1005f392
xor eax, eax
mov dword [ebp - 0x48], 4
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x14], eax
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0x20000013
push dword [ebp - 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov eax, dword [ebp - 0x14]
mov ecx, edi
push eax
mov word [edi + 0x114], ax
call fcn.1003a3c0
cmp dword [ebp - 0x14], 0x190
mov dword [edi + 0x110], eax
jb 0x1005e955
cmp dword [ebp - 0x14], 0x197
jne 0x1005e955
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
mov ebx, 0x1014a0f1
lea ecx, [ebp - 0x114]
push ebx
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0x18
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0x19
call fcn.1003a3c0
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0x144]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x12c]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.1001524d
test esi, esi
je 0x1005ea83
push ebx
lea ecx, [ebp - 0xcc]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0x1b
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x1c
call fcn.1003a3c0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 0x1d
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.100e1c13
add esp, 0xc
mov esi, dword [eax]
push dword [ebp - 0x14]
push str.OnCallBack
mov ecx, dword [esi + 0x24]
push str._s:_Received_Error_response_with_status__lu
push ebx
push eax
call dword [0x1014488c]
call dword [esi + 0x24]
add esp, 0x14
jmp 0x1005ea5e
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
mov ebx, 0x1014a0f1
lea ecx, [ebp - 0x114]
push ebx
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0x12
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0x13
call fcn.1003a3c0
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0x144]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x12c]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.1001524d
test esi, esi
je 0x1005ea83
push ebx
lea ecx, [ebp - 0xcc]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0x15
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x16
call fcn.1003a3c0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.100e1c13
add esp, 0xc
mov esi, dword [eax]
push dword [ebp - 0x14]
push str.OnCallBack
mov ecx, dword [esi + 0x14]
push str._s:_Received_response_with_status__lu
push eax
call dword [0x1014488c]
call dword [esi + 0x14]
add esp, 0x10
lea ecx, [ebp - 0xfc]
call fcn.1001524d
lea ecx, [ebp - 0xe4]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.1001524d
mov esi, 0x101e2a68
push esi
call sub.MSVCP140.dll__Mtx_unlock
cmp dword [ebp - 0x14], 0x197
pop ecx
jne 0x1005f064
cmp byte [edi + 0x108], 0
jne 0x1005f064
lea ecx, [edi + 0x10]
call fcn.10062c3a
cmp dword [eax + 0x10], 0
je 0x1005f064
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.1003a3c0
pop ecx
pop ecx
test al, al
jne 0x1005ebe9
push esi
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x80]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 0x1e
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x1f
call fcn.1003a3c0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0xb0]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x98]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.1001524d
test esi, esi
je 0x1005ebd0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0x21
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x22
call fcn.1003a3c0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.100e1c13
add esp, 0xc
mov esi, dword [eax]
push str.OnCallBack
push str._s_:_Failed_to_query_proxy_scheme
push ebx
mov ecx, dword [esi + 0x24]
push eax
call dword [0x1014488c]
call dword [esi + 0x24]
add esp, 0x10
lea ecx, [ebp - 0x68]
call fcn.1001524d
lea ecx, [ebp - 0x44]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001524d
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_unlock
mov dword [edi + 0x110], 5
jmp 0x1005e172
and dword [ebp - 0x34], 0
xor eax, eax
push 7
pop ecx
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x44], ax
and dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0x24
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x25
push eax
lea ecx, [edi + 0x10]
call fcn.10062c3a
push eax
call fcn.1003a3c0
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x10]
call fcn.100404df
push eax
call fcn.1003a3c0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x44]
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
push dword [ebp - 0xb4]
push 1
push dword [ebp - 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpSetCredentials]
push esi
test eax, eax
jne 0x1005ed89
mov dword [edi + 0x110], 5
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x80]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x26
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x27
call fcn.1003a3c0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0x28
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0xb0]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x98]
call fcn.1001524d
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x25
call fcn.1001524d
test esi, esi
je 0x1005ed7a
push ebx
lea ecx, [ebp - 0x174]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0x29
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x2a
call fcn.1003a3c0
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 0x2b
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.100e1c13
add esp, 0xc
mov ecx, dword [eax]
push str.failed_to_set_proxy_credentials
push ebx
push eax
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x1014488c]
call esi
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.1001524d
lea ecx, [ebp - 0x15c]
call fcn.1001524d
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 0x25
call fcn.1001524d
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_unlock
jmp 0x1005f00b
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0xb0]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0x2c
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 0x2d
call fcn.1003a3c0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0x2e
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0x174]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x15c]
call fcn.1001524d
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x25
call fcn.1001524d
test esi, esi
je 0x1005ee8f
push ebx
lea ecx, [ebp - 0x68]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x2f
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x30
call fcn.1003a3c0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0x31
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.100e1c13
add esp, 0xc
mov ecx, dword [eax]
push str.OnCallBack
push str._s_:_resending_with_proxy_credentials
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1014488c]
call esi
add esp, 0xc
lea ecx, [ebp - 0x98]
call fcn.1001524d
lea ecx, [ebp - 0x80]
call fcn.1001524d
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x25
call fcn.1001524d
mov esi, 0x101e2a68
push esi
call sub.MSVCP140.dll__Mtx_unlock
lea eax, [edi + 0x1b0]
mov byte [edi + 0x108], 1
cmp dword [eax + 0x14], 0x10
pop ecx
mov ecx, dword [edi + 0x1c0]
jb 0x1005eeb6
mov eax, dword [eax]
push dword [ebp + 0xc]
push ecx
push ecx
push eax
push 0
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpSendRequest]
test eax, eax
jne 0x1005f016
push esi
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x204]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 0x32
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 0x33
call fcn.1003a3c0
lea eax, [ebp - 0x204]
mov byte [ebp - 4], 0x34
push eax
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0x1d4]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x1ec]
call fcn.1001524d
lea ecx, [ebp - 0x204]
mov byte [ebp - 4], 0x25
call fcn.1001524d
test esi, esi
je 0x1005efee
push ebx
lea ecx, [ebp - 0x1bc]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 0x35
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0x36
call fcn.1003a3c0
lea eax, [ebp - 0x1bc]
mov byte [ebp - 4], 0x37
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.100e1c13
add esp, 0xc
mov esi, dword [eax]
push str.OnCallBack
push str._s_WinHttpSendRequest_failed
push ebx
mov ecx, dword [esi + 0x24]
push eax
call dword [0x1014488c]
call dword [esi + 0x24]
add esp, 0x10
lea ecx, [ebp - 0x18c]
call fcn.1001524d
lea ecx, [ebp - 0x1a4]
call fcn.1001524d
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 0x25
call fcn.1001524d
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_unlock
pop ecx
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.1005dc0e
mov dword [edi + 0x110], eax
pop ecx
push dword [ebp - 0x4c]
mov ecx, edi
call fcn.1005f51c
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x1005f030
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x2c]
call fcn.1003a3c0
pop ecx
pop ecx
and dword [ebp - 0x1c], 0
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 7
cmp eax, 8
jb 0x1005f514
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x44]
call fcn.1003a3c0
pop ecx
pop ecx
jmp 0x1005f514
push esi
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x18c]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 4], 0x38
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 0x39
call fcn.1003a3c0
lea eax, [ebp - 0x18c]
mov byte [ebp - 4], 0x3a
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x1bc]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0x1bc]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x1a4]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18c]
call fcn.1001524d
test esi, esi
je 0x1005f189
push ebx
lea ecx, [ebp - 0x1d4]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 4], 0x3b
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x204]
mov byte [ebp - 4], 0x3c
call fcn.1003a3c0
lea eax, [ebp - 0x1d4]
mov byte [ebp - 4], 0x3d
push eax
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.100e1c13
add esp, 0xc
mov esi, dword [eax]
push dword [ebp - 0x14]
push str.OnCallBack
mov ecx, dword [esi + 0xc]
push str._s:_Headers_availble__response__lu
push eax
call dword [0x1014488c]
call dword [esi + 0xc]
add esp, 0x10
lea ecx, [ebp - 0x204]
call fcn.1001524d
lea ecx, [ebp - 0x1ec]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1d4]
call fcn.1001524d
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_unlock
pop ecx
xor eax, eax
lea ecx, [ebp - 0x50]
push eax
push ecx
push eax
push eax
push 0x16
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
call dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1005f284
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1005f284
mov eax, dword [ebp - 0x50]
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003a3c0
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x50]
push eax
push esi
push 0
push 0x16
push dword [ebp - 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
and dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
push esi
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], 0x3e
call fcn.1003a3c0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x3f
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.1003a3c0
pop ecx
pop ecx
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 0x3e
call fcn.10015273
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.1003a3c0
lea eax, [edi + 0x118]
push eax
call fcn.1005f67b
push esi
call fcn.101109bc
or dword [ebp - 4], 0xffffffff
add esp, 0x20
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x1005f284
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x44]
call fcn.1003a3c0
pop ecx
pop ecx
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1005f514
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x98]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0x40
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0x41
call fcn.1003a3c0
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 0x42
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0x15c]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0xb0]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.1001524d
test esi, esi
je 0x1005e155
push ebx
lea ecx, [ebp - 0x2c]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0x43
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x44
call fcn.1003a3c0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x45
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.100e1c13
add esp, 0xc
mov esi, dword [eax]
push str.OnCallBack
push str._s_WinHttpQueryDataAvailable_failed
push ebx
mov ecx, dword [esi + 0x24]
push eax
call dword [0x1014488c]
call dword [esi + 0x24]
add esp, 0x10
lea ecx, [ebp - 0x80]
call fcn.1001524d
lea ecx, [ebp - 0x68]
call fcn.1001524d
lea ecx, [ebp - 0x2c]
jmp 0x1005e14c
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
pop ecx
pop ecx
mov ebx, 0x1014a0f1
lea ecx, [ebp - 0x18c]
push ebx
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 4], 0x65
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 0x66
call fcn.1003a3c0
lea eax, [ebp - 0x18c]
mov byte [ebp - 4], 0x67
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x1bc]
push eax
call fcn.100e1c13
add esp, 0xc
lea ecx, [ebp - 0x1bc]
mov esi, eax
call fcn.1001524d
lea ecx, [ebp - 0x1a4]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18c]
call fcn.1001524d
test esi, esi
je 0x1005f4cb
push ebx
lea ecx, [ebp - 0x24c]
call fcn.1003a3c0
push ebx
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0x68
call fcn.1003a3c0
push dword [edi + 8]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0x69
call fcn.1003a3c0
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0x6a
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.100e1c13
add esp, 0xc
mov ecx, dword [eax]
push str.OnCallBack
push str._s:_Handle_closed__notifying_request_done
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1014488c]
call esi
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.1001524d
lea ecx, [ebp - 0x234]
call fcn.1001524d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.1001524d
push 0x101e2a68
call sub.MSVCP140.dll__Mtx_unlock
lea esi, [edi + 0x154]
push esi
call sub.MSVCP140.dll__Mtx_lock
push eax
call fcn.1003a3c0
lea ecx, [edi + 0x1ac]
mov al, 1
xchg byte [ecx], al
push esi
mov dword [ebp - 4], 0x6b
call sub.MSVCP140.dll__Mtx_unlock
lea eax, [edi + 0x184]
mov dword [ebp - 4], 0x6c
push eax
call sub.MSVCP140.dll__Cnd_signal
add esp, 0x14
call fcn.10110886
ret 0x14