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

Disassembly:
push 0x5c4
mov eax, 0x55df04
call fcn.004cd1e4
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x5b0]
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push dword [edi + 0x14]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x488], edi
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x468], eax
mov dword [ebp - 4], ebx
call fcn.004906fc
lea ecx, [ebp - 0x5b0]
mov byte [ebp - 4], 1
call fcn.004a33ba
test eax, eax
jns 0x497c94
mov dword [esi], 5
jmp 0x49848b
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004957e8
push eax
lea ecx, [ebp - 0x54]
call fcn.0049138e
push ebx
push 1
lea ecx, [ebp - 0xa4]
call fcn.0040779d
lea eax, [edi + 0x1c]
mov dword [ebp - 0x54], 0x594a60
cmp dword [eax + 0x14], 8
jb 0x497cd0
mov eax, dword [eax]
mov dword [ebp - 0x520], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x528]
mov dword [ebp - 0x524], 0x593f14
push eax
lea eax, [ebp - 0x534]
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], 0x593f0c
push eax
push dword [0x602380]
mov dword [ebp - 0x530], 0x58a670
push 0x64
push 0x33f
push 0x5c80a0
mov dword [ebp - 0x52c], str.Sending_request_for_Url.
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], 0x593f0c
call fcn.00493624
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040779d
cmp byte [edi + 0x11], 0
jne 0x498485
cmp byte [edi + 0x10], 0
je 0x498485
mov ecx, edi
mov byte [ebp - 0x44a], bl
mov byte [ebp - 0x449], bl
call fcn.0049769b
mov al, bl
test al, al
jne 0x498023
lea eax, [edi + 0x90]
mov dword [ebp - 0x4bc], eax
mov dword [ebp - 0x4b8], ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lock inc dword [ebp - 0x4b8]
cmp dword [edi + 0x34], ebx
jne 0x497daf
lea ecx, [ebp - 0x4bc]
mov dword [esi], 6
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00411e33
jmp 0x498491
lea ecx, [edi + 0x50]
call fcn.00495e09
mov eax, dword [ebp + 0x14]
push ebx
push eax
push eax
push dword [ebp - 0x468]
push ebx
push ebx
push dword [edi + 0x34]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne al
mov byte [ebp - 0x449], al
test al, al
je 0x497de3
mov eax, dword [ebp + 0x14]
add dword [edi + 0x60], eax
lea ecx, [ebp - 0x4bc]
call fcn.00411e33
mov al, byte [ebp - 0x449]
test al, al
je 0x497fff
mov ecx, dword [ebp - 0x450]
test ecx, ecx
je 0x497f93
cmp dword [ebp + 0x14], 0
jbe 0x497f93
push ecx
call fcn.004b4319
mov dword [ebp - 0x478], ebx
mov dword [ebp - 0x474], ebx
mov dword [ebp - 0x470], ebx
mov edx, 0x2000
mov byte [ebp - 4], 2
cmp dword [ebp + 0x14], edx
lea ecx, [ebp - 0x478]
mov eax, edx
cmovb eax, dword [ebp + 0x14]
push eax
call fcn.0043ccf1
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x478]
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], edx
mov edx, 0x2000
cmp eax, edx
mov ecx, edx
lea edx, [ebp - 0x45c]
cmovb ecx, eax
mov eax, dword [ebp - 0x450]
push edx
mov edx, dword [ebp - 0x454]
push ecx
mov eax, dword [eax]
push edx
push dword [ebp - 0x450]
call dword [eax + 0xc]
test eax, eax
setns al
mov byte [ebp - 0x449], al
test al, al
je 0x497f7e
cmp dword [ebp - 0x45c], 0
je 0x497f7e
mov eax, dword [ebp - 0x458]
sub eax, dword [ebp - 0x45c]
mov dword [ebp - 0x458], eax
lea eax, [edi + 0x90]
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4ac], ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lock inc dword [ebp - 0x4ac]
cmp dword [edi + 0x34], 0
jne 0x497f0b
lea ecx, [ebp - 0x4b0]
mov dword [esi], 6
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00411e33
lea ecx, [ebp - 0x478]
call fcn.0041193a
jmp 0x498491
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x45c]
push dword [ebp - 0x454]
push dword [edi + 0x34]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
setne al
mov byte [ebp - 0x449], al
test al, al
je 0x497f3f
mov eax, dword [ebp - 0x46c]
add dword [edi + 0x60], eax
lea ecx, [ebp - 0x4b0]
call fcn.00411e33
cmp byte [ebp - 0x449], 0
je 0x497f78
mov eax, dword [ebp - 0x45c]
cmp eax, dword [ebp - 0x46c]
jne 0x497f78
mov eax, dword [ebp - 0x458]
mov byte [ebp - 0x449], 1
test eax, eax
jne 0x497e5f
jmp 0x497f7e
mov byte [ebp - 0x449], bl
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 1
call fcn.0041193a
mov al, byte [ebp - 0x449]
test al, al
je 0x497fff
lea eax, [edi + 0x90]
mov dword [ebp - 0x4a4], eax
mov dword [ebp - 0x4a0], ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lock inc dword [ebp - 0x4a0]
cmp dword [edi + 0x34], 0
jne 0x497fc9
lea ecx, [ebp - 0x4a4]
jmp 0x497d99
push ebx
push dword [edi + 0x34]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne al
mov byte [ebp - 0x449], al
test al, al
je 0x497fea
lea ecx, [edi + 0x50]
call fcn.00495e35
lea ecx, [ebp - 0x4a4]
call fcn.00411e33
mov al, byte [ebp - 0x449]
test al, al
jne 0x498016
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
mov al, byte [ebp - 0x44a]
je 0x497d65
mov al, 1
mov byte [ebp - 0x44a], al
jmp 0x497d65
mov al, byte [ebp - 0x449]
mov byte [edi + 0x11], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x449], 0
xorps xmm0, xmm0
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x454], ebx
movlpd qword [ebp - 0x54c], xmm0
jne 0x49807f
push eax
lea eax, [ebp - 0x544]
push eax
call fcn.00495240
mov eax, dword [ebp - 0x544]
mov ecx, dword [ebp - 0x538]
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x53c]
mov dword [ebp - 0x450], ecx
jmp 0x498091
mov eax, dword [ebp - 0x548]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x54c]
cmp byte [edi + 0x11], 0
mov dword [ebp - 0x458], eax
je 0x4981d7
mov eax, dword [edi]
lea ecx, [ebp - 0x47c]
push ecx
lea ecx, [ebp - 0x5c0]
push ecx
mov ecx, edi
call dword [eax + 0x20]
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004957e8
push eax
lea ecx, [ebp - 0x34]
call fcn.0049138e
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.0040779d
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0x4c0], eax
lea eax, [edi + 0x1c]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x34], 0x594a60
mov dword [ebp - 0x4c4], str.Status
mov dword [ebp - 0x4c8], 0x596418
jb 0x498112
mov eax, dword [eax]
mov dword [ebp - 0x4cc], eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x4d0], 0x593f14
push eax
lea eax, [ebp - 0x4d4]
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], 0x593f0c
push eax
lea eax, [ebp - 0x4e0]
mov dword [ebp - 0x4dc], 0x58a670
push eax
push dword [0x602380]
mov dword [ebp - 0x4d8], str.Request_for_Url_is_sent.
push 0x64
push 0x33f
push 0x5c80a1
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], 0x593f0c
call fcn.004948df
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040779d
cmp byte [edi + 0x11], 0
je 0x4981d7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
test eax, eax
je 0x4981cd
cmp dword [edi + 0x18], ebx
je 0x4981cd
mov eax, dword [edi]
lea ecx, [ebp - 0x480]
push ecx
lea ecx, [ebp - 0x5d0]
push ecx
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 0x480], 0xc8
jne 0x4981cd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
push dword [edi + 0x18]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
cmp byte [edi + 0x11], 0
jne 0x4982a6
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.004957e8
push eax
lea ecx, [ebp - 0x74]
call fcn.0049138e
push ebx
push 1
lea ecx, [ebp - 0xbc]
call fcn.0040779d
mov eax, dword [ebp - 0x468]
mov dword [ebp - 0x4e4], eax
lea eax, [edi + 0x1c]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x74], 0x594a60
mov dword [ebp - 0x4e8], 0x56f568
mov dword [ebp - method.Mso::Logging::StructuredObject_unsigned_int__1_.virtual_0], 0x56f560
jb 0x498233
mov eax, dword [eax]
mov dword [ebp - 0x4f0], eax
lea eax, [ebp - 0x4ec]
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x4f4], 0x593f14
push eax
lea eax, [ebp - 0x4f8]
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], 0x593f0c
push eax
lea eax, [ebp - 0x504]
mov dword [ebp - 0x500], 0x58a670
push eax
push dword [0x602380]
mov dword [ebp - 0x4fc], str.Failed_to_send_request.
push 0xf
push 0x33f
push 0x5c80a2
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], 0x593f0c
call fcn.004948df
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0040779d
mov ecx, dword [ebp - 0x458]
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x55c], ecx
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x564], eax
mov dword [ebp - 0x558], ecx
cmp eax, 7
jne 0x498371
lea eax, [edi + 0x90]
mov dword [ebp - 0x464], ebx
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x494], ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lock inc dword [ebp - 0x494]
cmp dword [edi + 0x34], 0
jne 0x49830b
lea ecx, [ebp - 0x498]
jmp 0x497d99
lea eax, [ebp - 0x484]
mov dword [ebp - 0x484], 4
push eax
lea eax, [ebp - 0x464]
push eax
push 0x4e
push dword [edi + 0x34]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
lea ecx, [ebp - 0x498]
call fcn.00411e33
cmp dword [ebp - 0x464], 0
je 0x49836b
push 1
push 0xc
call fcn.00409744
test eax, eax
je 0x49835e
push dword [ebp - 0x464]
mov ecx, eax
call fcn.00494c45
mov ebx, eax
test ebx, ebx
je 0x49836b
mov ecx, dword [edi + 8]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x450]
mov ebx, dword [ebp - 0x454]
mov eax, dword [ebp - 0x458]
mov dword [edi + 0x68], ebx
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], ecx
cmp ebx, 7
jne 0x498398
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x14]
cdq
mov edi, edx
jmp 0x49839e
mov edi, dword [ebp - 0x450]
mov dword [esi], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
jmp 0x498491
mov dword [esi], 6
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ecx, [ebp - 0x5b0]
call fcn.0049088b
mov eax, esi
call fcn.004cd135
ret 0x10