Function at 0x10037f85
Capabilities:
Check http status code

Disassembly:
push 0x3a4
mov eax, 0x10078d49
call fcn.10075263
mov eax, dword [ebp + 8]
mov ecx, dword [0x100e9af8]
mov dword [ebp - 0x3b0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3a4], ecx
push eax
lea ecx, [ebp - 0x36c]
call dword [0x10096f84]
xor ebx, ebx
lea esi, [ebp - 0x39c]
mov dword [ebp - 4], ebx
call fcn.10035faa
jmp 0x100381d4
xor edx, edx
cmp dword [ebp - 0x398], 3
jne 0x10037fde
push 3
pop ecx
jmp 0x10037ffe
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x398], ecx
jne 0x100381f1
cmp byte [0x100e52a8], bl
jne 0x100381f1
mov edx, 0x8000000
mov eax, dword [ebp - 0x38c]
push ebx
push edx
push ecx
cmp dword [eax - 0xc], ebx
jne 0x10038030
push ebx
push ebx
push dword [ebp - 0x390]
push dword [ebp - 0x394]
push dword [ebp - 0x3a4]
call dword [0x100ea0d4]
mov esi, eax
mov dword [ebp - 0x374], esi
jmp 0x10038057
push dword [ebp - 0x388]
push eax
push dword [ebp - 0x390]
push dword [ebp - 0x394]
push dword [ebp - 0x3a4]
call dword [0x100ea0d4]
mov dword [ebp - 0x374], eax
mov esi, eax
cmp esi, ebx
je 0x100381f1
push dword [ebp - 0x384]
lea ecx, [ebp - 0x370]
mov dword [ebp - 0x37c], ebx
call dword [0x10096f84]
mov byte [ebp - 4], 2
push dword [ebp - 0x380]
lea ecx, [ebp - 0x370]
call dword [0x10096ee8]
cmp dword [ebp - 0x398], 3
jne 0x10038266
push ebx
push 0xa0000000
push 0x100e52ac
push ebx
push ebx
push dword [ebp - 0x370]
push str.HEAD
push esi
call dword [0x100ea0d0]
mov edi, eax
cmp edi, ebx
je 0x10038213
mov dword [ebp - 0x3a0], ebx
mov dword [ebp - 0x3a8], 4
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x100ea0c4]
test eax, eax
je 0x1003824e
push ebx
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebp - 0x3a0]
push eax
push 0x20000013
push edi
call dword [0x100ea0c8]
test eax, eax
je 0x1003821a
mov eax, dword [ebp - 0x3a0]
cmp eax, 0x197
je 0x1003811d
cmp eax, 0x191
jne 0x1003815d
mov esi, dword [ebp - 0x3b0]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push edi
push 0x501
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xffffffffffffffff
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, byte [esi + 0x26]
test al, al
je 0x10038257
mov esi, dword [ebp - 0x374]
jmp 0x100380d3
cmp eax, 0x12e
je 0x1003816f
cmp eax, 0x12d
jne 0x10038228
push ebx
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x118]
push eax
push 0x21
push edi
mov dword [ebp - 0x3ac], 0x104
call dword [0x100ea0c8]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x36c]
call dword [0x10096b70]
push edi
call dword [0x100ea0bc]
push esi
mov dword [ebp - 0x378], ebx
call dword [0x100ea0bc]
lea ecx, [ebp - 0x370]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea esi, [ebp - 0x39c]
call fcn.10035fec
call fcn.10035faa
mov byte [ebp - 4], 1
push dword [ebp - 0x36c]
lea edi, [ebp - 0x39c]
call fcn.10036021
test al, al
jne 0x10037fce
lea esi, [ebp - 0x39c]
call fcn.10035fec
lea ecx, [ebp - 0x36c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
or eax, 0xffffffff
call fcn.100752e6
ret 8
push esi
call dword [0x100ea0bc]
lea ecx, [ebp - 0x370]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x100381f1
cmp eax, 0xc8
jne 0x1003824e
push ebx
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebp - 0x37c]
push eax
push 0x20000005
push edi
call dword [0x100ea0c8]
test eax, eax
jne 0x100382a5
push edi
call dword [0x100ea0bc]
jmp 0x10038213
push edi
call dword [0x100ea0bc]
push dword [ebp - 0x374]
jmp 0x10038214
cmp dword [ebp - 0x398], 1
jne 0x1003829f
push ebx
push 0x84000000
lea eax, [ebp - 0x368]
push eax
push dword [ebp - 0x370]
push esi
call dword [0x100ea0ec]
mov dword [ebp - 0x378], eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x348]
mov dword [ebp - 0x37c], eax
mov edi, dword [ebp - 0x378]
cmp edi, ebx
je 0x100382b0
push edi
call dword [0x100ea0bc]
push esi
call dword [0x100ea0bc]
mov edi, dword [ebp - 0x37c]
lea ecx, [ebp - 0x370]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea esi, [ebp - 0x39c]
call fcn.10035fec
lea ecx, [ebp - 0x36c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, edi
jmp 0x1003820b