Function at 0x4258d0
Capabilities:
Check http status code
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5252d1
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x57594c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x47c], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00425860
add esp, 4
test eax, eax
jne 0x425940
push 0x5484d8
mov ecx, dword [ebp + 8]
call fcn.00406cf0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x47c]
or ecx, 1
mov dword [ebp - 0x47c], ecx
mov eax, dword [ebp + 8]
jmp 0x425e38
lea ecx, [ebp - 0x428]
call fcn.00422610
mov dword [ebp - 4], 1
mov dword [ebp - 0x490], 0
jmp 0x42596d
mov edx, dword [ebp - 0x490]
add edx, 1
mov dword [ebp - 0x490], edx
cmp dword [ebp - 0x490], 0xa
jge 0x425e08
push 0
push 0
push 0
push 0
push 0x5484e0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x48c], eax
cmp dword [ebp - 0x48c], 0
jne 0x4259cf
push 0x5484dc
mov ecx, dword [ebp + 8]
call fcn.00406cf0
mov eax, dword [ebp - 0x47c]
or eax, 1
mov dword [ebp - 0x47c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.00406d30
mov eax, dword [ebp + 8]
jmp 0x425e38
mov dword [ebp - 0x498], 0x548528
mov ecx, dword [ebp - 0x498]
mov dword [ebp - 0x484], ecx
mov edx, dword [ebp - 0x484]
add edx, 2
mov dword [ebp - 0x4c0], edx
mov eax, dword [ebp - 0x484]
mov cx, word [eax]
mov word [ebp - 0x492], cx
add dword [ebp - 0x484], 2
cmp word [ebp - 0x492], 0
jne 0x4259f4
mov edx, dword [ebp - 0x484]
sub edx, dword [ebp - 0x4c0]
sar edx, 1
mov dword [ebp - 0x4b0], edx
push 0
push 0x200000
mov eax, dword [ebp - 0x4b0]
push eax
mov ecx, dword [ebp - 0x498]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x48c]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x480], eax
cmp dword [ebp - 0x480], 0
jne 0x425a91
push 0x548540
mov ecx, dword [ebp + 8]
call fcn.00406cf0
mov ecx, dword [ebp - 0x47c]
or ecx, 1
mov dword [ebp - 0x47c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.00406d30
mov eax, dword [ebp + 8]
jmp 0x425e38
mov byte [ebp - 0x410], 0
push 0x3ff
push 0
lea edx, [ebp - 0x40f]
push edx
call fcn.004bfe20
add esp, 0xc
mov dword [ebp - 0x488], 0x400
push 0
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x410]
push ecx
push 0x13
mov edx, dword [ebp - 0x480]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x410]
push eax
call fcn.004b9cf4
add esp, 4
mov dword [ebp - 0x49c], eax
cmp dword [ebp - 0x49c], 0xc8
je 0x425bf2
cmp dword [ebp - 0x49c], 0x12e
je 0x425b0d
jmp 0x425dd0
mov dword [ebp - 0x488], 0x400
push 0
lea ecx, [ebp - 0x488]
push ecx
lea edx, [ebp - 0x410]
push edx
push 0x21
mov eax, dword [ebp - 0x480]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4d8], esp
lea edx, [ebp - 0x410]
push edx
call fcn.00406b80
mov dword [ebp - 0x4b8], eax
mov eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x4d0], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x458]
push ecx
mov byte [ebp - 4], 1
call fcn.0041dc50
add esp, 0x1c
mov dword [ebp - 0x4a4], eax
mov edx, dword [ebp - 0x4a4]
mov dword [ebp - 0x4c8], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4c8]
call fcn.00409770
push eax
lea eax, [ebp - 0x470]
push eax
call fcn.004258d0
add esp, 8
mov dword [ebp - 0x4ac], eax
mov ecx, dword [ebp - 0x4ac]
mov dword [ebp - 0x4a8], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x4a8]
push edx
lea ecx, [ebp - 0x428]
call fcn.00426b30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x470]
call fcn.00406d30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x458]
call fcn.00406d30
jmp 0x425dd0
mov dword [ebp - 0x488], 0x400
push 0
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x410]
push ecx
push 0x2f
mov edx, dword [ebp - 0x480]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 0x548544
lea eax, [ebp - 0x410]
push eax
call fcn.004257e0
add esp, 8
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0
je 0x425dab
mov byte [ebp - 0x475], 0
mov ecx, 1
imul edx, ecx, 9
add edx, dword [ebp - 0x474]
mov dword [ebp - 0x474], edx
mov eax, dword [ebp - 0x474]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x425c81
mov byte [ebp - 0x475], 1
mov edx, dword [ebp - 0x474]
add edx, 1
mov dword [ebp - 0x474], edx
mov eax, dword [ebp - 0x474]
mov dword [ebp - 0x4a0], eax
mov ecx, dword [ebp - 0x474]
movsx edx, byte [ecx]
test edx, edx
je 0x425cc6
mov eax, dword [ebp - 0x474]
movsx ecx, byte [eax]
test ecx, ecx
je 0x425cc6
mov edx, dword [ebp - 0x474]
movsx eax, byte [edx]
cmp eax, 0x22
je 0x425cc6
mov ecx, dword [ebp - 0x474]
add ecx, 1
mov dword [ebp - 0x474], ecx
jmp 0x425c8d
movzx edx, byte [ebp - 0x475]
test edx, edx
je 0x425d1c
mov eax, dword [ebp - 0x474]
movsx ecx, byte [eax]
cmp ecx, 0x22
je 0x425d1c
mov edx, dword [ebp - 0x474]
movsx eax, byte [edx]
test eax, eax
jne 0x425d1c
push 0
mov ecx, dword [ebp + 8]
call fcn.00406cf0
mov ecx, dword [ebp - 0x47c]
or ecx, 1
mov dword [ebp - 0x47c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.00406d30
mov eax, dword [ebp + 8]
jmp 0x425e38
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4cc], esp
mov edx, dword [ebp - 0x4a0]
push edx
call fcn.00406b80
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp - 0x4bc]
mov dword [ebp - 0x4d4], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x440]
push ecx
mov byte [ebp - 4], 1
call fcn.0041dc50
add esp, 0x1c
mov dword [ebp - 0x4b4], eax
mov edx, dword [ebp - 0x4b4]
mov dword [ebp - 0x4c4], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x4c4]
push eax
lea ecx, [ebp - 0x428]
call fcn.00426b30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x440]
call fcn.00406d30
mov ecx, dword [ebp - 0x474]
sub ecx, dword [ebp - 0x4a0]
push ecx
lea ecx, [ebp - 0x428]
call fcn.00426c40
lea ecx, [ebp - 0x428]
call fcn.00406c70
test eax, eax
ja 0x425dd0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x428]
call fcn.00422640
mov eax, dword [ebp - 0x480]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x48c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x428]
call fcn.00406c70
test eax, eax
jbe 0x425dfb
jmp 0x425e08
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42595e
lea edx, [ebp - 0x428]
push edx
mov ecx, dword [ebp + 8]
call fcn.004146c0
mov eax, dword [ebp - 0x47c]
or eax, 1
mov dword [ebp - 0x47c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.00406d30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8d48
mov esp, ebp
pop ebp
ret