Function at 0x402460
Capabilities:
Check http status code
Read http header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa120
call fcn.00474750
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xa120]
mov ecx, 0x2848
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4abc14]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], 4
mov esi, esp
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x70
push ecx
push 0
push 0x20000013
mov ecx, dword [ebp - 0xc]
add ecx, 0xac
call fcn.00431080
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp esi, esp
call fcn.004744d2
test eax, eax
jne 0x402527
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004744d2
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x6c], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x40
call fcn.00403a00
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x6c]
push ecx
push str.sfs8iMQl0e1uk8RkmvoogsR3necpx5NW_g
push 0x27d0
push 0x1e26
call fcn.004565f0
add esp, 0xc
push eax
call fcn.00454e30
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x68], 3
xor eax, eax
jmp 0x4029f1
mov dword [ebp - 0x18], 0x9fff
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x70], 0xc8
je 0x402655
mov ecx, dword [ebp - 0xc]
add ecx, 0x40
call fcn.00403a00
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x70]
push ecx
push 0x67ea
push str.p_0vk8N21Oohg9Ml0e1uldNxgfsggtIlkvshipYgp4M
push 0x60b5
push 0x5d3c
call fcn.004565f0
add esp, 0x10
push eax
call fcn.00454e30
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x70], 0x12d
je 0x402592
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x70], 0x12e
jne 0x402638
mov esi, esp
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xa020]
push ecx
push 0
push 0x21
mov ecx, dword [ebp - 0xc]
add ecx, 0xac
call fcn.00431080
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp esi, esp
call fcn.004744d2
test eax, eax
je 0x402638
lea eax, [ebp - 0xa020]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x40
call fcn.00403a00
push eax
push 0x609e
push 0x25f6
push str.oPs3jthi1P0hx8RgkOA8gtVx1O88iNsl0dpuk9kl0dpE
push 0x6bc
push 0x3dcc
call fcn.004565f0
add esp, 0x14
push eax
call fcn.00454e30
add esp, 0xc
lea eax, [ebp - 0xa020]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x40
call fcn.004035e0
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0xac
call fcn.00401df0
mov ecx, dword [ebp - 0xc]
call fcn.00401eb0
movzx eax, al
neg eax
sbb eax, eax
jmp 0x4029f1
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x68], 3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x70]
mov dword [eax + 0x6c], edx
xor eax, eax
jmp 0x4029f1
mov esi, esp
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0xa0
push ecx
push 0
push 0x20000005
mov ecx, dword [ebp - 0xc]
add ecx, 0xac
call fcn.00431080
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp esi, esp
call fcn.004744d2
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x94]
test ecx, ecx
je 0x4026e7
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x4ad140]
add ecx, dword [eax + 0xa0]
mov dword [0x4ad140], ecx
mov eax, dword [0x4ad140]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xa0]
push edx
push 0x4ddd
push 0x3c82
push str.tfo3idVSnecGk8J11Ogqg9Nh1OohicJgmv0CgthigOFuwtIlgOZulOlroOY6htpHjf0rlIRBm_4gi9lkkKlrg7w
push 0xcc1
push 0x2850
call fcn.004565f0
add esp, 0x14
push eax
call fcn.00454e30
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x68], 2
mov dword [ebp - 0x18], 0x9fff
mov dword [ebp - 0xa02c], 0
mov esi, esp
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xa020]
push ecx
push 0
push 0x2f
mov ecx, dword [ebp - 0xc]
add ecx, 0xac
call fcn.00431080
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp esi, esp
call fcn.004744d2
test eax, eax
je 0x40287a
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov word [ebp + ecx*2 - 0xa020], ax
push 0x72aa
push 0x2d30
push str.kuAigthkmexz
push 0x6a47
push 0x4dd2
call fcn.004566b0
add esp, 0x14
mov esi, esp
push eax
lea eax, [ebp - 0xa020]
push eax
push 0x5a84
push str.p_08tMJ3vd4
push 0x691e
push 0xa09
call fcn.004565f0
add esp, 0x10
push eax
push str.shlwapi.dll
call fcn.00466180
add esp, 8
call eax
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0xa038], eax
cmp dword [ebp - 0xa038], 0
je 0x402878
mov eax, dword [ebp - 0xa038]
add eax, 0x12
mov dword [ebp - 0xa038], eax
mov eax, dword [ebp - 0xa038]
movzx ecx, word [eax]
cmp ecx, 0x22
jne 0x4027e3
mov eax, dword [ebp - 0xa038]
add eax, 2
mov dword [ebp - 0xa038], eax
push 0x22
mov eax, dword [ebp - 0xa038]
push eax
call fcn.00402a60
add esp, 8
mov dword [ebp - 0xa044], eax
cmp dword [ebp - 0xa044], 0
je 0x402810
xor eax, eax
mov ecx, dword [ebp - 0xa044]
mov word [ecx], ax
jmp 0x402866
push 0x20
mov eax, dword [ebp - 0xa038]
push eax
call fcn.00402a60
add esp, 8
mov dword [ebp - 0xa044], eax
cmp dword [ebp - 0xa044], 0
je 0x40283b
xor eax, eax
mov ecx, dword [ebp - 0xa044]
mov word [ecx], ax
push 0x3b
mov eax, dword [ebp - 0xa038]
push eax
call fcn.00402a60
add esp, 8
mov dword [ebp - 0xa044], eax
cmp dword [ebp - 0xa044], 0
je 0x402866
xor eax, eax
mov ecx, dword [ebp - 0xa044]
mov word [ecx], ax
mov eax, dword [ebp - 0xa038]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 8
call fcn.004035e0
jmp 0x40288f
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0xa02c], eax
mov dword [ebp - 0x18], 0x9fff
mov ecx, dword [ebp - 0xc]
add ecx, 8
call fcn.00403660
movzx eax, al
test eax, eax
je 0x4029d7
mov esi, esp
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xa020]
push ecx
push 0
push 0x80000015
mov ecx, dword [ebp - 0xc]
add ecx, 0xac
call fcn.00431080
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp esi, esp
call fcn.004744d2
test eax, eax
je 0x4029d7
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov word [ebp + ecx*2 - 0xa020], ax
push 0x20
lea eax, [ebp - 0xa020]
push eax
call fcn.00402a60
add esp, 8
mov dword [ebp - 0xa050], eax
cmp dword [ebp - 0xa050], 0
jne 0x402921
lea eax, [ebp - 0xa020]
mov dword [ebp - 0xa050], eax
jmp 0x402930
mov eax, dword [ebp - 0xa050]
add eax, 2
mov dword [ebp - 0xa050], eax
push 0x20
mov eax, dword [ebp - 0xa050]
push eax
call fcn.00402a60
add esp, 8
mov dword [ebp - 0xa05c], eax
cmp dword [ebp - 0xa05c], 0
je 0x40295b
xor eax, eax
mov ecx, dword [ebp - 0xa05c]
mov word [ecx], ax
push 0x3f
mov eax, dword [ebp - 0xa050]
push eax
call fcn.00402a60
add esp, 8
mov dword [ebp - 0xa05c], eax
cmp dword [ebp - 0xa05c], 0
je 0x402986
xor eax, eax
mov ecx, dword [ebp - 0xa05c]
mov word [ecx], ax
push 0x2f
mov eax, dword [ebp - 0xa050]
push eax
call fcn.00402ab0
add esp, 8
mov dword [ebp - 0xa05c], eax
cmp dword [ebp - 0xa05c], 0
jne 0x4029b4
mov eax, dword [ebp - 0xa050]
mov dword [ebp - 0xa05c], eax
jmp 0x4029c3
mov eax, dword [ebp - 0xa05c]
add eax, 2
mov dword [ebp - 0xa05c], eax
mov eax, dword [ebp - 0xa05c]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 8
call fcn.004035e0
jmp 0x4029ec
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0xa02c], eax
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x402a20]
call fcn.004744f5
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004744c3
add esp, 0xa120
cmp ebp, esp
call fcn.004744d2
mov esp, ebp
pop ebp
ret