Function at 0x472214
Capabilities:
Receive http response
Send data
Send http request

Disassembly:
push 0x9c
mov eax, 0x4a3f8e
call fcn.0043fd29
mov esi, ecx
xor ebx, ebx
push ebx
push dword [esi + 0x68]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], ebx
call fcn.00486ea5
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.0044f60a
test eax, eax
jns 0x47225a
mov esi, dword [ebp + 8]
mov dword [esi], 5
jmp 0x4726b1
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x42e800
push 3
call fcn.004746f6
cmp byte [esi + 0x15], 0
jne 0x4726a8
cmp byte [esi + 0x14], 0
je 0x4726a8
mov bh, bl
mov ecx, esi
mov byte [ebp - 0x11], bh
xor bl, bl
call fcn.00486ea5
mov edi, dword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
test bh, bh
jne 0x472501
and dword [ebp - 0x2c], 0
lea eax, [esi + 0x4c]
mov dword [ebp - 0x30], eax
push dword [eax]
call dword [sym.imp.kernel32.dll_AcquireSRWLockShared]
xor eax, eax
lea ecx, [ebp - 0x2c]
inc eax
lock xadd dword [ecx], eax
cmp dword [esi + 8], 0
jne 0x4722ec
mov esi, dword [ebp + 8]
and dword [esi + 4], 0
mov dword [esi], 6
cmp dword [ebp - 0x2c], 0
jbe 0x4726b4
lea ecx, [ebp - 0x2c]
or eax, 0xffffffff
lock xadd dword [ecx], eax
mov eax, dword [ebp - 0x30]
push dword [eax]
call edi
jmp 0x4722cf
xor eax, eax
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push eax
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne bl
cmp dword [ebp - 0x2c], 0
jbe 0x472321
lea ecx, [ebp - 0x2c]
or eax, 0xffffffff
lock xadd dword [ecx], eax
mov eax, dword [ebp - 0x30]
push dword [eax]
call edi
jmp 0x472308
test bl, bl
je 0x4724e6
cmp dword [ebp + 0xc], 0
je 0x472469
cmp dword [ebp + 0x14], 0
jbe 0x472469
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00486ea5
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov eax, 0x2000
cmp dword [ebp + 0x14], eax
lea ecx, [ebp - 0x54]
cmovb eax, dword [ebp + 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.00486ea5
mov edi, dword [ebp + 0x14]
jmp 0x472372
mov ebx, dword [ebp + 0xc]
mov eax, 0x2000
cmp edi, eax
lea edx, [ebp - 0x18]
push edx
mov ecx, edi
cmovae ecx, eax
mov eax, dword [ebx]
push ecx
push dword [ebp - 0x54]
push ebx
call dword [eax + 0xc]
test eax, eax
setns bl
test bl, bl
je 0x472454
cmp dword [ebp - 0x18], 0
je 0x472454
and dword [ebp - 0x38], 0
sub edi, dword [ebp - 0x18]
lea eax, [esi + 0x4c]
mov dword [ebp - 0x3c], eax
push dword [eax]
call dword [sym.imp.kernel32.dll_AcquireSRWLockShared]
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x38]
mov eax, ebx
lock xadd dword [ecx], eax
cmp dword [esi + 8], 0
jne 0x472404
mov esi, dword [ebp + 8]
and dword [esi + 4], 0
mov dword [esi], 6
cmp dword [ebp - 0x38], 0
jbe 0x4723f4
lea ecx, [ebp - 0x38]
or eax, 0xffffffff
lock xadd dword [ecx], eax
mov eax, dword [ebp - 0x3c]
push dword [eax]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
jmp 0x4723d7
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.0046c995
jmp 0x4726b4
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x54]
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
setne byte [ebp - 0x12]
cmp dword [ebp - 0x38], 0
jbe 0x47243a
lea ecx, [ebp - 0x38]
or eax, 0xffffffff
lock xadd dword [ecx], eax
mov eax, dword [ebp - 0x3c]
push dword [eax]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
jmp 0x47241d
cmp byte [ebp - 0x12], 0
je 0x472452
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x58]
jne 0x472452
test edi, edi
jne 0x47236f
jmp 0x472454
xor bl, bl
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0046c995
mov edi, dword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
mov bh, byte [ebp - 0x11]
test bl, bl
je 0x4724e6
and dword [ebp - 0x20], 0
lea eax, [esi + 0x4c]
mov dword [ebp - 0x24], eax
push dword [eax]
call dword [sym.imp.kernel32.dll_AcquireSRWLockShared]
xor eax, eax
lea ecx, [ebp - 0x20]
inc eax
lock xadd dword [ecx], eax
cmp dword [esi + 8], 0
jne 0x4724b9
mov esi, dword [ebp + 8]
and dword [esi + 4], 0
mov dword [esi], 6
cmp dword [ebp - 0x20], 0
jbe 0x4726b4
lea ecx, [ebp - 0x20]
or eax, 0xffffffff
lock xadd dword [ecx], eax
mov eax, dword [ebp - 0x24]
push dword [eax]
call edi
jmp 0x47249c
push 0
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne bl
cmp dword [ebp - 0x20], 0
jbe 0x4724e2
lea ecx, [ebp - 0x20]
or eax, 0xffffffff
lock xadd dword [ecx], eax
mov eax, dword [ebp - 0x24]
push dword [eax]
call edi
jmp 0x4724c9
test bl, bl
jne 0x4724f7
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x2f00
je 0x472298
mov bh, 1
mov byte [ebp - 0x11], bh
jmp 0x472298
mov byte [esi + 0x15], bl
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x44], eax
test bl, bl
je 0x472517
xor ebx, ebx
mov edi, ebx
jmp 0x472525
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00486ea5
mov edi, dword [eax]
xor ebx, ebx
call fcn.004745a1
test al, al
je 0x47256d
cmp byte [esi + 0x15], 0
je 0x472573
mov ecx, esi
call fcn.00486ea5
test eax, eax
je 0x47256d
cmp dword [esi + 0x6c], ebx
je 0x47256d
mov eax, dword [esi]
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, esi
call dword [eax + 0x1c]
cmp dword [ebp + 0x14], 0xc8
jne 0x47256d
mov ecx, esi
call fcn.00486ea5
push dword [esi + 0x6c]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
cmp byte [esi + 0x15], 0
jne 0x47258d
mov eax, dword [ebp - 0x7c]
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x14]
push eax
push 0x42e848
push 2
call fcn.0047475b
cmp edi, 7
jne 0x472653
lea eax, [esi + 0x4c]
mov dword [ebp + 0x14], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
push dword [eax]
call dword [sym.imp.kernel32.dll_AcquireSRWLockShared]
xor eax, eax
lea ecx, [ebp - 0x20]
inc eax
lock xadd dword [ecx], eax
inc eax
cmp dword [esi + 8], 0
jne 0x4725e8
mov esi, dword [ebp + 8]
mov dword [esi], 6
mov dword [esi + 4], ebx
cmp dword [ebp - 0x20], 0
jbe 0x4726b4
lea ecx, [ebp - 0x20]
or eax, 0xffffffff
lock xadd dword [ecx], eax
mov eax, dword [ebp - 0x24]
push dword [eax]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
jmp 0x4725c7
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x14]
push eax
push 0x4e
push dword [esi + 8]
mov dword [ebp + 0xc], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
cmp dword [ebp - 0x20], 0
jbe 0x47261f
lea ecx, [ebp - 0x20]
or eax, 0xffffffff
lock xadd dword [ecx], eax
mov eax, dword [ebp - 0x24]
push dword [eax]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
jmp 0x472602
cmp dword [ebp + 0x14], 0
je 0x472653
push 0x4f1268
push 0xc
call fcn.0043fcbb
pop ecx
pop ecx
test eax, eax
jne 0x47263c
call fcn.00486ea5
push dword [ebp + 0x14]
mov ecx, eax
call fcn.00486ea5
test eax, eax
je 0x472653
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push eax
call dword [edx + 0x18]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
mov esi, dword [ebp + 8]
mov dword [esi], edi
jmp 0x4726b1
mov esi, dword [ebp + 8]
mov dword [esi], 6
mov dword [esi + 4], ebx
lea ecx, [ebp - 0xa8]
call fcn.00447ed7
mov eax, esi
call fcn.0043fdce
ret 0x10