Function at 0x41a320
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c8e0
mov eax, dword fs:[0]
push eax
mov eax, 0x1038
call fcn.00422020
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x103c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1034], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1038], eax
mov eax, dword [ebp + 0x18]
push 0x1002
mov dword [ebp - 0x1044], eax
lea eax, [ebp - 0x1014]
push 0
push eax
mov dword [esi], 0
call fcn.00423c20
add esp, 0xc
mov dword [ebp - 0x1030], 0x1000
lea eax, [ebp - 0x1030]
push 0
push eax
lea eax, [ebp - 0x1014]
push eax
push 0x21
push dword [ebp - 0x1034]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x41a3e6
mov dword [esi], 9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421dd5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1030]
and eax, 0xfffffffe
cmp eax, 0x1002
jae 0x41a5e4
push dword [ebp - 0x1034]
xor ecx, ecx
mov word [ebp + eax - 0x1014], cx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
mov dword [ebp - 0x101c], 0
xor eax, eax
mov dword [ebp - 0x1018], 7
movups xmmword [ebp - 0x102c], xmm0
mov word [ebp - 0x102c], ax
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], eax
mov eax, edi
jb 0x41a444
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x102c]
push eax
call fcn.00419870
add esp, 0xc
test al, al
jne 0x41a46a
mov dword [esi], 0xa
jmp 0x41a50b
lea eax, [ebp - 0x102c]
cmp edi, eax
je 0x41a490
cmp dword [ebp - 0x1018], 8
mov ecx, edi
push dword [ebp - 0x101c]
cmovae eax, dword [ebp - 0x102c]
push eax
call fcn.00405700
cmp dword [ebp - 0x1018], 8
lea eax, [ebp - 0x102c]
mov ecx, dword [ebp - 0x1038]
cmovae eax, dword [ebp - 0x102c]
or ecx, 0x200000
push 0
push ecx
push 0
push 0
push eax
push dword [ebp - 0x103c]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
jne 0x41a4d0
mov dword [esi], 5
jmp 0x41a50b
mov edi, dword [ebp - 0x1044]
lea ecx, [ebp - 0x1040]
push 0
push ecx
push edi
push 0x20000013
push eax
mov dword [ebp - 0x1040], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x41a502
mov dword [esi], 6
jmp 0x41a50b
mov eax, dword [edi]
cmp eax, 0xc8
jne 0x41a554
mov ecx, dword [ebp - 0x1018]
cmp ecx, 8
jb 0x41a3c9
mov edx, dword [ebp - 0x102c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a545
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a5e9
push ecx
push edx
call fcn.00421b76
add esp, 8
jmp 0x41a3c9
cmp eax, 0x12c
jb 0x41a5a5
cmp eax, 0x190
jae 0x41a5a5
mov ecx, dword [ebp - 0x1018]
cmp ecx, 8
jb 0x41a59e
mov edx, dword [ebp - 0x102c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a594
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a5e9
push ecx
push edx
call fcn.00421b76
add esp, 8
mov al, 1
jmp 0x41a3cb
mov ecx, dword [ebp - 0x1018]
cmp ecx, 8
jb 0x41a3c9
mov edx, dword [ebp - 0x102c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a545
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a5e9
jmp 0x41a545
call fcn.00421f36
call fcn.0042577e
int3