Function at 0x4b664b
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd6fe
mov eax, dword fs:[0]
push eax
mov eax, 0x1940
call fcn.004cbc50
mov eax, dword [0x53b070]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18d8], eax
xor eax, eax
push 0x1800
push eax
mov dword [ebp - 0x18dc], eax
mov ebx, eax
mov dword [ebp - 0x18e4], eax
mov dword [ebp - 0x18d4], eax
lea eax, [ebp - 0x18d0]
push eax
mov dword [ebp - 0x18e0], esi
call fcn.004cd4b0
xor eax, eax
mov dword [ebp - 0x1940], 0x3c
mov dword [ebp - 0x1934], eax
add esp, 0xc
mov dword [ebp - 0x1928], eax
mov ecx, edi
lea eax, [ebp - 0x4d0]
mov dword [ebp - 0x190c], eax
lea eax, [ebp - 0x14d0]
mov dword [ebp - 0x1930], eax
lea eax, [ebp - 0xcd0]
mov dword [ebp - 0x191c], eax
lea eax, [ebp - 0x18d0]
mov dword [ebp - 0x193c], eax
lea eax, [ebp - 0x8d0]
mov dword [ebp - 0x1914], eax
lea eax, [ebp - 0x10d0]
mov dword [ebp - 0x1924], eax
mov eax, 0x200
mov dword [ebp - 0x1920], eax
mov dword [ebp - 0x1910], eax
mov dword [ebp - 0x1938], eax
mov dword [ebp - 0x1918], eax
mov dword [ebp - 0x192c], eax
mov dword [ebp - 0x1908], eax
mov eax, dword [edi]
call dword [eax + 0xc]
lea ecx, [ebp - 0x44]
call fcn.00440334
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [0x5df7e4]
test eax, eax
jne 0x4b6781
call fcn.004b6f51
push str.WinHttpCrackUrl
push dword [0x541504]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5df7e4], eax
test eax, eax
je 0x4b678f
lea ecx, [ebp - 0x1940]
push ecx
xor ecx, ecx
push ecx
push ecx
push esi
call eax
push dword [ebp - 0x1914]
lea ecx, [ebp - 0x28]
call fcn.0043b556
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push dword [ebp - 0x190c]
call fcn.0042cfae
sub esp, 0xc
call fcn.004b7171
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x18f4], esi
test esi, esi
je 0x4b6c41
push str.https
lea ecx, [ebp - 0x60]
call fcn.00440943
xor eax, eax
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00442009
lea ecx, [ebp - 0x60]
mov bl, al
call fcn.00440de9
push ecx
test bl, bl
je 0x4b680b
push 0x7e4000
xor ecx, ecx
call fcn.004b7222
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b6816
push 0xffffffffffffffff
mov ecx, esi
call fcn.004b7222
pop ecx
pop ecx
mov edx, dword [ebp - 0x18d8]
test edx, edx
je 0x4b686f
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x18dc]
jne 0x4b6825
sub ecx, ebx
sar ecx, 1
je 0x4b686f
xor eax, eax
mov dword [ebp - 0x1948], edx
mov dword [ebp - 0x1944], eax
mov ecx, esi
push 0xc
lea eax, [ebp - 0x194c]
mov dword [ebp - 0x194c], 3
push eax
push 0x26
pop edx
call fcn.004b71e3
mov ebx, dword [ebp - 0x18e0]
pop ecx
pop ecx
jmp 0x4b687c
mov ebx, dword [ebp - 0x18e0]
push ebx
push esi
call fcn.004b6eb2
mov edx, dword [ebp - 0x1930]
xor eax, eax
push ecx
push dword [ebp - 0x1928]
mov ecx, esi
mov dword [ebp - 0x18ec], 4
mov dword [ebp - 0x18f0], eax
mov dword [ebp - 0x18fc], eax
call fcn.004b6fd3
mov esi, eax
mov dword [ebp - 0x18d8], eax
pop ecx
pop ecx
test esi, esi
jne 0x4b68e0
mov edx, dword [ebp - 0x1930]
push ecx
push dword [ebp - 0x1928]
mov ecx, dword [ebp - 0x18f4]
call fcn.004b6fd3
mov esi, eax
mov dword [ebp - 0x18d8], esi
pop ecx
pop ecx
test esi, esi
je 0x4b6c3b
push ebx
lea ecx, [ebp - 0x7c]
call fcn.00440943
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
call fcn.00443482
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00440de9
push str.https
lea ecx, [ebp - 0x98]
call fcn.00440943
xor eax, eax
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00442009
lea ecx, [ebp - 0x98]
mov bl, al
call fcn.00440de9
lea eax, [ebp - 0x28]
test bl, bl
je 0x4b696e
cmp dword [ebp - 0x14], 8
push 0x800000
cmovae eax, dword [ebp - 0x28]
push ecx
push ecx
push 0x51f46c
push eax
mov ecx, esi
call fcn.004b7011
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4b69bf
push 0x800000
push ecx
push ecx
push 0x51f46c
jmp 0x4b699f
cmp dword [ebp - 0x14], 8
push 0x100
cmovae eax, dword [ebp - 0x28]
push ecx
push ecx
push str.HTTP_1.1
push eax
mov ecx, esi
call fcn.004b7011
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4b69bf
push 0x100
push ecx
push ecx
push str.HTTP_1.1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004b7011
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4b6c3b
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]
push esi
push eax
push dword [edi + 0x34]
mov ecx, ebx
mov dword [edi + 0x38], eax
call fcn.004b628b
add esp, 0xc
test eax, eax
jne 0x4b6c31
mov eax, dword [esi]
test eax, eax
je 0x4b6c31
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x18dc], eax
push dword [ebp - 0x18dc]
mov dword [ebp - 0x18d4], eax
call esi
lea eax, [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x18d4]
mov dword [ebp - 0x18dc], eax
push dword [ebp - 0x18dc]
call esi
push dword [ebp - 0x18e0]
lea ecx, [ebp - 0xb4]
call fcn.00440943
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x40]
call fcn.00443482
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.00440de9
push str.https
lea ecx, [ebp - 0xd0]
call fcn.00440943
xor esi, esi
lea eax, [ebp - 0xd0]
push esi
push eax
lea ecx, [ebp - 0x44]
call fcn.00442009
lea ecx, [ebp - 0xd0]
mov bl, al
call fcn.00440de9
test bl, bl
je 0x4b6ae3
mov ecx, dword [ebp - 0x18d4]
lea eax, [ebp - 0x18f8]
push 4
push eax
mov dword [ebp - 0x18f8], 0x3100
mov ecx, dword [ecx + 0x20]
push 0x1f
pop edx
call fcn.004b71e3
pop ecx
pop ecx
test eax, eax
je 0x4b6c3b
mov ecx, dword [ebp - 0x18d4]
lea eax, [ebp - 0x18d4]
push 4
push eax
push 0x2d
mov ecx, dword [ecx + 0x20]
pop edx
call fcn.004b71e3
pop ecx
pop ecx
test eax, eax
je 0x4b6c3b
mov ecx, dword [ebp - 0x18d4]
call fcn.004b6366
mov ecx, dword [ebp - 0x18d4]
sub esp, 0x14
mov ecx, dword [ecx + 0x20]
call fcn.004b7057
add esp, 0x14
test eax, eax
jne 0x4b6b50
mov ecx, dword [ebp - 0x18d4]
sub esp, 0x14
mov ecx, dword [ecx + 0x20]
call fcn.004b7057
add esp, 0x14
test eax, eax
jne 0x4b6b50
mov eax, dword [ebp - 0x18d4]
add eax, 4
jmp 0x4b6c34
mov eax, dword [ebp - 0x18d4]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 4
push eax
call ebx
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x1904], eax
mov eax, dword [edi + 0x38]
push 0xea60
mov dword [ebp - 0x1900], eax
lea eax, [ebp - 0x1904]
push esi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4b6c3b
mov ecx, dword [ebp - 0x18d4]
call fcn.004b6366
mov ecx, dword [ebp - 0x18d4]
xor eax, eax
push esi
mov edx, 0x20000013
cmp dword [ecx + 0x30], esi
mov dword [ebp - 0x18e8], esi
sete al
mov dword [ebp - 0x18e4], eax
lea eax, [ebp - 0x18ec]
push eax
lea eax, [ebp - 0x18e8]
push eax
push ecx
mov ecx, dword [ecx + 0x20]
call fcn.004b7091
add esp, 0x10
cmp dword [ebp - 0x18e8], 0xc8
je 0x4b6bf6
mov dword [ebp - 0x18e4], esi
mov eax, dword [ebp - 0x18d4]
add eax, 4
push eax
call ebx
jmp 0x4b6c3b
lea eax, [ebp - 0x18fc]
mov edx, 0x20000005
push eax
lea eax, [ebp - 0x18ec]
push eax
lea eax, [ebp - 0x18f0]
push eax
push ecx
mov ecx, dword [ebp - 0x18d4]
mov ecx, dword [ecx + 0x20]
call fcn.004b7091
add esp, 0x10
test eax, eax
je 0x4b6be8
mov eax, dword [ebp - 0x18f0]
mov dword [edi + 0x24], eax
jmp 0x4b6be8
lea eax, [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 0x18d8]
lea esi, [edi + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x18f4]
push esi
mov dword [edi + 8], ebx
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x18d4]
test ecx, ecx
je 0x4b6c75
call fcn.004b625f
xor eax, eax
mov dword [ebp - 0x18d4], eax
lea ecx, [ebp - 0x28]
call fcn.004330cb
lea ecx, [ebp - 0x44]
call fcn.00440de9
mov eax, dword [ebp - 0x18e4]
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.004caa72
leave
ret 8