Function at 0x40fe82
Capabilities:
Check http status code

Disassembly:
push 0x18
mov eax, 0x467007
call fcn.0043d25b
mov edi, ecx
xor esi, esi
mov ebx, esi
cmp dword [edi], esi
je 0x40fe9f
mov dword [edi + 0x24], 1
call fcn.00410319
test eax, eax
je 0x40ff83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.InitializeHTTPSession
mov ebx, eax
call fcn.004042c5
push ecx
mov ecx, esp
mov dword [ebp - 4], esi
push str.AgentSendRequest
call fcn.004042c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov edx, ebx
call fcn.004098c9
add esp, 4
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x47ea50
call fcn.004042c5
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x479a58
call fcn.004042c5
push ecx
mov byte [ebp - 4], 3
mov esi, esp
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
push eax
call fcn.00404a80
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.WIN_ELEC_AGENTSENDREQUEST
call fcn.004042c5
push ecx
mov ecx, esp
mov byte [ebp - 4], 5
push str.TRACK_FEATURE
call fcn.004042c5
mov byte [ebp - 4], 1
call fcn.00406f9d
mov eax, dword [ebp - 0x10]
add esp, 0x14
cmp dword [eax - 4], 1
jle 0x40ff74
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00404809
mov eax, dword [ebp - 0x10]
push eax
call fcn.004064a1
pop ecx
mov ecx, dword [ebp - 0x10]
jmp 0x4102cc
mov ecx, edi
call fcn.00410647
test eax, eax
je 0x410044
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InitializeHTTPRequest
mov ebx, eax
call fcn.004042c5
push ecx
mov ecx, esp
mov dword [ebp - 4], 6
push str.AgentSendRequest
call fcn.004042c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov edx, ebx
call fcn.004098c9
add esp, 4
mov dword [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x47ea50
call fcn.004042c5
push ecx
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x479a58
call fcn.004042c5
push ecx
mov byte [ebp - 4], 9
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
push eax
call fcn.00404a80
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.WIN_ELEC_AGENTSENDREQUEST
call fcn.004042c5
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xb
push str.TRACK_FEATURE
call fcn.004042c5
mov byte [ebp - 4], 7
jmp 0x40ff55
mov ecx, edi
call fcn.004111e2
test eax, eax
je 0x410105
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.HttpSendRequest
mov ebx, eax
call fcn.004042c5
push ecx
mov ecx, esp
mov dword [ebp - 4], 0xc
push str.AgentSendRequest
call fcn.004042c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov edx, ebx
call fcn.004098c9
add esp, 4
mov dword [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x47ea50
call fcn.004042c5
push ecx
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x479a58
call fcn.004042c5
push ecx
mov byte [ebp - 4], 0xf
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
push eax
call fcn.00404a80
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.WIN_ELEC_AGENTSENDREQUEST
call fcn.004042c5
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x11
push str.TRACK_FEATURE
call fcn.004042c5
mov byte [ebp - 4], 0xd
jmp 0x40ff55
mov ecx, edi
call fcn.004114e8
test eax, eax
je 0x4101c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.GetResponseStatusCode
mov ebx, eax
call fcn.004042c5
push ecx
mov ecx, esp
mov dword [ebp - 4], 0x12
push str.AgentSendRequest
call fcn.004042c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov edx, ebx
call fcn.004098c9
add esp, 4
mov dword [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x47ea50
call fcn.004042c5
push ecx
mov byte [ebp - 4], 0x14
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x479a58
call fcn.004042c5
push ecx
mov byte [ebp - 4], 0x15
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
push eax
call fcn.00404a80
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.WIN_ELEC_AGENTSENDREQUEST
call fcn.004042c5
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x17
push str.TRACK_FEATURE
call fcn.004042c5
mov byte [ebp - 4], 0x13
jmp 0x40ff55
cmp dword [edi + 8], 0xc8
jne 0x4102d4
cmp dword [edi + 0x4c], esi
jbe 0x4102d4
cmp dword [edi], esi
je 0x4101e7
mov dword [edi + 0x24], 4
mov ecx, edi
call fcn.004119f4
test eax, eax
je 0x4102d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.HttpReadResponseData
mov ebx, eax
call fcn.004042c5
push ecx
mov ecx, esp
mov dword [ebp - 4], 0x18
push str.AgentSendRequest
call fcn.004042c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
mov edx, ebx
call fcn.004098c9
add esp, 4
mov dword [ebp - 4], 0x19
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x47ea50
call fcn.004042c5
push ecx
mov byte [ebp - 4], 0x1a
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x479a58
call fcn.004042c5
push ecx
mov byte [ebp - 4], 0x1b
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
push eax
call fcn.00404a80
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.WIN_ELEC_AGENTSENDREQUEST
call fcn.004042c5
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x1d
push str.TRACK_FEATURE
call fcn.004042c5
mov byte [ebp - 4], 0x19
call fcn.00406f9d
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp dword [eax - 4], 1
jle 0x4102c2
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00404809
mov eax, dword [ebp - 0x14]
push eax
call fcn.004064a1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401696
mov eax, dword [edi + 0x80]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x4102ee
push eax
call esi
and dword [edi + 0x80], 0
mov eax, dword [edi + 0x84]
test eax, eax
je 0x410302
push eax
call esi
and dword [edi + 0x84], 0
cmp dword [edi + 0x7c], 0
je 0x410311
push dword [edi + 0x7c]
call esi
and dword [edi + 0x7c], 0
mov eax, ebx
call fcn.0043d229
ret