Function at 0x4496a6
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bac5
mov eax, dword fs:[0]
push eax
mov eax, 0x1890
call fcn.0045eb00
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
push 0x1800
push eax
mov dword [ebp - 0x1830], eax
mov dword [ebp - 0x183c], eax
mov dword [ebp - 0x1838], eax
mov dword [ebp - 0x182c], eax
lea eax, [ebp - 0x1828]
push eax
mov dword [ebp - 0x1834], ebx
call fcn.0045fe80
xor eax, eax
mov dword [ebp - 0x1890], 0x3c
mov dword [ebp - 0x1884], eax
add esp, 0xc
mov dword [ebp - 0x1878], eax
mov ecx, edi
lea eax, [ebp - 0x428]
mov dword [ebp - 0x185c], eax
lea eax, [ebp - 0x1428]
mov dword [ebp - 0x1880], eax
lea eax, [ebp - 0xc28]
mov dword [ebp - 0x186c], eax
lea eax, [ebp - 0x1828]
mov dword [ebp - 0x188c], eax
lea eax, [ebp - 0x828]
mov dword [ebp - 0x1864], eax
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x1874], eax
mov eax, 0x200
mov dword [ebp - 0x1870], eax
mov dword [ebp - 0x1860], eax
mov dword [ebp - 0x1888], eax
mov dword [ebp - 0x1868], eax
mov dword [ebp - 0x187c], eax
mov dword [ebp - 0x1858], eax
mov eax, dword [edi]
call dword [eax + 0xc]
mov eax, dword [0x4b62b8]
test eax, eax
jne 0x4497cd
call fcn.00449e43
push str.WinHttpCrackUrl
push dword [0x4b5b98]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b62b8], eax
test eax, eax
je 0x4497db
lea ecx, [ebp - 0x1890]
push ecx
xor ecx, ecx
push ecx
push ecx
push ebx
call eax
push dword [ebp - 0x1864]
lea ecx, [ebp - 0x28]
call fcn.004163e0
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
push dword [ebp - 0x185c]
call fcn.004086ce
sub esp, 0xc
call fcn.0044a067
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x449b3b
mov eax, dword [0x4b62b0]
test eax, eax
jne 0x449839
call fcn.00449e43
push str.WinHttpSetStatusCallback
push dword [0x4b5b98]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b62b0], eax
test eax, eax
je 0x449846
xor ecx, ecx
push ecx
push 0xffffffffffffffff
push 0x449587
push ebx
call eax
test esi, esi
je 0x449893
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x1830]
jne 0x44984f
sub ecx, edx
sar ecx, 1
je 0x449893
xor eax, eax
mov dword [ebp - 0x189c], 3
mov dword [ebp - 0x1894], eax
mov ecx, ebx
push 0xc
lea eax, [ebp - 0x189c]
mov dword [ebp - 0x1898], esi
push eax
push 0x26
pop edx
call fcn.0044a0d9
pop ecx
pop ecx
jmp 0x44989f
push dword [ebp - 0x1834]
push ebx
call fcn.00449da4
mov edx, dword [ebp - 0x1880]
xor eax, eax
push ecx
push dword [ebp - 0x1878]
mov ecx, ebx
mov dword [ebp - 0x1844], 4
mov dword [ebp - 0x1848], eax
mov dword [ebp - 0x184c], eax
call fcn.00449ec5
mov esi, eax
mov dword [ebp - 0x1838], eax
pop ecx
pop ecx
test esi, esi
jne 0x4498ff
mov edx, dword [ebp - 0x1880]
push ecx
push dword [ebp - 0x1878]
mov ecx, ebx
call fcn.00449ec5
mov esi, eax
mov dword [ebp - 0x1838], esi
pop ecx
pop ecx
test esi, esi
je 0x449b3b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
sub esp, 0x10
push eax
call fcn.00449f03
add esp, 0x14
mov dword [ebp - 0x1830], eax
test eax, eax
jne 0x449949
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
sub esp, 0x10
push eax
call fcn.00449f03
add esp, 0x14
mov dword [ebp - 0x1830], eax
test eax, eax
je 0x449b3b
lea eax, [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor eax, eax
push eax
push eax
push eax
push eax
call esi
mov dword [edi + 0x30], eax
xor eax, eax
push eax
push eax
push eax
push eax
call esi
mov dword [edi + 0x34], eax
xor eax, eax
push eax
push eax
push eax
push eax
call esi
mov edx, dword [edi + 0x30]
lea esi, [edi + 0x2c]
mov ecx, dword [ebp - 0x1830]
push esi
push eax
push dword [edi + 0x34]
mov dword [edi + 0x38], eax
call fcn.004492e6
add esp, 0xc
test eax, eax
jne 0x449b31
mov eax, dword [esi]
test eax, eax
je 0x449b31
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x1834], eax
push dword [ebp - 0x1834]
mov dword [ebp - 0x182c], eax
call esi
lea eax, [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x182c]
mov dword [ebp - 0x1834], eax
push dword [ebp - 0x1834]
call esi
mov ecx, dword [ebp - 0x182c]
lea eax, [ebp - 0x182c]
push 4
push eax
push 0x2d
mov ecx, dword [ecx + 0x20]
pop edx
call fcn.0044a0d9
pop ecx
pop ecx
test eax, eax
je 0x449b3b
mov ecx, dword [ebp - 0x182c]
call fcn.004493c1
mov ecx, dword [ebp - 0x182c]
sub esp, 0x14
mov ecx, dword [ecx + 0x20]
call fcn.00449f4d
add esp, 0x14
test eax, eax
jne 0x449a4a
mov ecx, dword [ebp - 0x182c]
sub esp, 0x14
mov ecx, dword [ecx + 0x20]
call fcn.00449f4d
add esp, 0x14
test eax, eax
jne 0x449a4a
mov eax, dword [ebp - 0x182c]
add eax, 4
jmp 0x449b34
mov eax, dword [ebp - 0x182c]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 4
push eax
call esi
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x1854], eax
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x1850], eax
xor eax, eax
push 0xea60
push eax
lea eax, [ebp - 0x1854]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x449b3b
mov ecx, dword [ebp - 0x182c]
call fcn.004493c1
mov ecx, dword [ebp - 0x182c]
xor eax, eax
xor edx, edx
push edx
cmp dword [ecx + 0x30], edx
mov dword [ebp - 0x1840], edx
mov edx, 0x20000013
sete al
mov dword [ebp - 0x183c], eax
lea eax, [ebp - 0x1844]
push eax
lea eax, [ebp - 0x1840]
push eax
push ecx
mov ecx, dword [ecx + 0x20]
call fcn.00449f87
add esp, 0x10
cmp dword [ebp - 0x1840], 0xc8
je 0x449af6
xor eax, eax
mov dword [ebp - 0x183c], eax
mov eax, dword [ebp - 0x182c]
add eax, 4
push eax
call esi
jmp 0x449b3b
lea eax, [ebp - 0x184c]
mov edx, 0x20000005
push eax
lea eax, [ebp - 0x1844]
push eax
lea eax, [ebp - 0x1848]
push eax
push ecx
mov ecx, dword [ebp - 0x182c]
mov ecx, dword [ecx + 0x20]
call fcn.00449f87
add esp, 0x10
test eax, eax
je 0x449ae8
mov eax, dword [ebp - 0x1848]
mov dword [edi + 0x24], eax
jmp 0x449ae8
lea eax, [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [edi + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x1838]
push esi
mov dword [edi + 8], eax
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x182c]
test ecx, ecx
je 0x449b6f
call fcn.004492ba
xor eax, eax
mov dword [ebp - 0x182c], eax
lea ecx, [ebp - 0x28]
call fcn.0040e502
mov eax, dword [ebp - 0x183c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045d929
leave
ret 8