Function at 0x4b65b8
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd64a
mov eax, dword fs:[0]
push eax
mov eax, 0x1940
call fcn.004cbbc0
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.004cd420
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.004402b7
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [0x5df7e8]
test eax, eax
jne 0x4b66ee
call fcn.004b6ebe
push str.WinHttpCrackUrl
push dword [0x541504]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5df7e8], eax
test eax, eax
je 0x4b66fc
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.0043b4d9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push dword [ebp - 0x190c]
call fcn.0042cfa1
sub esp, 0xc
call fcn.004b70de
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x18f4], esi
test esi, esi
je 0x4b6bae
push str.https
lea ecx, [ebp - 0x60]
call fcn.004408c6
xor eax, eax
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00441f8c
lea ecx, [ebp - 0x60]
mov bl, al
call fcn.00440d6c
push ecx
test bl, bl
je 0x4b6778
push 0x7e4000
xor ecx, ecx
call fcn.004b718f
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b6783
push 0xffffffffffffffff
mov ecx, esi
call fcn.004b718f
pop ecx
pop ecx
mov edx, dword [ebp - 0x18d8]
test edx, edx
je 0x4b67dc
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x18dc]
jne 0x4b6792
sub ecx, ebx
sar ecx, 1
je 0x4b67dc
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.004b7150
mov ebx, dword [ebp - 0x18e0]
pop ecx
pop ecx
jmp 0x4b67e9
mov ebx, dword [ebp - 0x18e0]
push ebx
push esi
call fcn.004b6e1f
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.004b6f40
mov esi, eax
mov dword [ebp - 0x18d8], eax
pop ecx
pop ecx
test esi, esi
jne 0x4b684d
mov edx, dword [ebp - 0x1930]
push ecx
push dword [ebp - 0x1928]
mov ecx, dword [ebp - 0x18f4]
call fcn.004b6f40
mov esi, eax
mov dword [ebp - 0x18d8], esi
pop ecx
pop ecx
test esi, esi
je 0x4b6ba8
push ebx
lea ecx, [ebp - 0x7c]
call fcn.004408c6
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
call fcn.00443405
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00440d6c
push str.https
lea ecx, [ebp - 0x98]
call fcn.004408c6
xor eax, eax
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00441f8c
lea ecx, [ebp - 0x98]
mov bl, al
call fcn.00440d6c
lea eax, [ebp - 0x28]
test bl, bl
je 0x4b68db
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.004b6f7e
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4b692c
push 0x800000
push ecx
push ecx
push 0x51f46c
jmp 0x4b690c
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.004b6f7e
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4b692c
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.004b6f7e
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4b6ba8
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.004b61f8
add esp, 0xc
test eax, eax
jne 0x4b6b9e
mov eax, dword [esi]
test eax, eax
je 0x4b6b9e
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.004408c6
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x40]
call fcn.00443405
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.00440d6c
push str.https
lea ecx, [ebp - 0xd0]
call fcn.004408c6
xor esi, esi
lea eax, [ebp - 0xd0]
push esi
push eax
lea ecx, [ebp - 0x44]
call fcn.00441f8c
lea ecx, [ebp - 0xd0]
mov bl, al
call fcn.00440d6c
test bl, bl
je 0x4b6a50
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.004b7150
pop ecx
pop ecx
test eax, eax
je 0x4b6ba8
mov ecx, dword [ebp - 0x18d4]
lea eax, [ebp - 0x18d4]
push 4
push eax
push 0x2d
mov ecx, dword [ecx + 0x20]
pop edx
call fcn.004b7150
pop ecx
pop ecx
test eax, eax
je 0x4b6ba8
mov ecx, dword [ebp - 0x18d4]
call fcn.004b62d3
mov ecx, dword [ebp - 0x18d4]
sub esp, 0x14
mov ecx, dword [ecx + 0x20]
call fcn.004b6fc4
add esp, 0x14
test eax, eax
jne 0x4b6abd
mov ecx, dword [ebp - 0x18d4]
sub esp, 0x14
mov ecx, dword [ecx + 0x20]
call fcn.004b6fc4
add esp, 0x14
test eax, eax
jne 0x4b6abd
mov eax, dword [ebp - 0x18d4]
add eax, 4
jmp 0x4b6ba1
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 0x4b6ba8
mov ecx, dword [ebp - 0x18d4]
call fcn.004b62d3
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.004b6ffe
add esp, 0x10
cmp dword [ebp - 0x18e8], 0xc8
je 0x4b6b63
mov dword [ebp - 0x18e4], esi
mov eax, dword [ebp - 0x18d4]
add eax, 4
push eax
call ebx
jmp 0x4b6ba8
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.004b6ffe
add esp, 0x10
test eax, eax
je 0x4b6b55
mov eax, dword [ebp - 0x18f0]
mov dword [edi + 0x24], eax
jmp 0x4b6b55
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 0x4b6be2
call fcn.004b61cc
xor eax, eax
mov dword [ebp - 0x18d4], eax
lea ecx, [ebp - 0x28]
call fcn.004330ba
lea ecx, [ebp - 0x44]
call fcn.00440d6c
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.004ca9dc
leave
ret 8