Function at 0x498980
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffb82
mov eax, dword fs:[0]
push eax
mov eax, 0x22f0
call fcn.004dae70
mov eax, dword [0x53f030]
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 ebx, ecx
mov dword [ebp - 0x22b0], ebx
push 0
push 0
push 0
push 0
push 0x510fb4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x2298], eax
test eax, eax
je 0x49905e
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x2274], 0x2710
mov dword [ebp - 0x22bc], 0
mov dword [ebp - 0x22b8], 0
mov dword [ebp - 0x22b4], 0
lea ecx, [ebx + 4]
mov dword [ebp - 0x2284], 0
mov dword [ebp - 0x2280], 0
mov dword [ebp - 0x227c], 0
push ecx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2264], edi
cmp dword [ebx + 0x30], edi
je 0x498ae8
mov ecx, dword [ebx + 0x34]
xor esi, esi
test ecx, ecx
je 0x498a71
mov edx, dword [ebx + 0x2c]
mov eax, edx
cmp dword [eax], edi
jne 0x498ad3
inc esi
add eax, 4
cmp esi, ecx
jb 0x498a65
xor esi, esi
test esi, esi
je 0x498ae8
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 0xc]
test eax, eax
jne 0x498ae2
mov dword [ebp - 0x2264], esi
test esi, esi
je 0x498ae2
mov eax, dword [esi + 4]
test eax, eax
je 0x498aa1
cmp dword [eax + 8], 0
jne 0x498ad8
cmp dword [eax + 4], 0
je 0x498ad8
test esi, esi
je 0x498ae2
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x498acb
mov eax, dword [esi + 0xc]
xor edx, edx
mov edi, dword [ebx + 0x34]
div edi
inc edx
cmp edx, edi
jae 0x498acb
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + edx*4]
test eax, eax
cmovne ecx, eax
inc edx
test ecx, ecx
je 0x498ab7
mov esi, ecx
test ecx, ecx
jne 0x498a77
jmp 0x498ae2
mov esi, dword [edx + esi*4]
jmp 0x498a73
mov dword [ebp - 0x225c], 1
mov edi, dword [ebp - 0x2264]
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x225c], 0
jne 0x498b9d
lea eax, [ebx + 0x1c]
push eax
lea ecx, [ebp - 0x2284]
call fcn.0045ce30
lea edi, [ebx + 0x20]
push edi
lea ecx, [ebp - 0x2284]
call fcn.0045ce30
mov esi, dword [ebp - 0x2280]
test esi, esi
jle 0x49907a
push 0xffffffffffffffff
push 0
push dword [ebp - 0x2284]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jae 0x498b84
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 0xc]
test eax, eax
je 0x498b5d
mov esi, 1
mov dword [ebp - 0x2260], esi
jmp 0x499012
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 0x10]
test eax, eax
je 0x49900c
mov eax, dword [edi]
test eax, eax
je 0x49900c
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x49900c
cmp eax, 0xffffffff
jne 0x49900c
mov esi, 1
mov dword [ebp - 0x2260], esi
jmp 0x499012
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2294], 0
mov dword [ebp - 0x2290], 0
mov dword [ebp - 0x228c], 0
mov dword [ebp - 0x2288], 0
mov esi, dword [edi]
mov byte [ebp - 4], 2
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x498bfb
cmp ecx, dword [esi - 0x10]
jne 0x498bfb
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x498c34
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x49908b
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004d93d7
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [ebp - 0x22c0], esi
push 0x3c
lea eax, [ebp - 0x22fc]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.004d9060
lea eax, [ebp - 0x210]
mov dword [ebp - 0x22fc], 0x3c
mov dword [ebp - 0x22ec], eax
add esp, 0xc
lea eax, [ebp - 0x2258]
mov dword [ebp - 0x22e8], 0x100
mov dword [ebp - 0x22d0], eax
lea eax, [ebp - 0x1258]
mov dword [ebp - 0x22c8], eax
lea eax, [ebp - 0x22fc]
push eax
push 0x90000000
mov dword [ebp - 0x22cc], 0x800
mov dword [ebp - 0x22c4], 0x824
push dword [esi - 0xc]
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x498f46
push 0
push 0
push 3
push 0
push 0
push 0x50
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x2298]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x229c], edi
test edi, edi
je 0x498f46
push 4
lea eax, [ebp - 0x2274]
push eax
push 2
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 0x2258]
push eax
lea ecx, [ebp - 0x2270]
call fcn.0043a420
lea ecx, [ebp - 0x1258]
mov byte [ebp - 4], 4
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x498d20
sub ecx, edx
lea eax, [ebp - 0x1258]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2270]
call fcn.00452320
push 0
push 0x4000000
push 0
push 0
push 0
push dword [ebp - 0x2270]
push 0
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
mov dword [ebp - 0x2278], ebx
test ebx, ebx
je 0x498ec5
push 4
lea eax, [ebp - 0x2274]
push eax
push 5
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x2274]
push eax
push 6
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x498ebe
push 0
lea eax, [ebp - 0x2268]
mov dword [ebp - 0x225c], 0
push eax
lea eax, [ebp - 0x225c]
mov dword [ebp - 0x2268], 4
push eax
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x498eb2
mov eax, dword [ebp - 0x225c]
cmp eax, 0xc8
je 0x498df9
cmp eax, 0xc9
jne 0x498eb2
xor ebx, ebx
mov dword [ebp - 0x226c], ebx
mov dword [ebp - 0x22ac], ebx
mov dword [ebp - 0x22a8], ebx
mov dword [ebp - 0x22a4], ebx
mov dword [ebp - 0x22a0], ebx
mov byte [ebp - 4], 5
lea ecx, [ecx]
push 0xffffffffffffffff
push 0x2000
lea ecx, [ebp - 0x22ac]
call fcn.004990a0
mov edi, dword [ebp - 0x22ac]
lea eax, [ebp - 0x226c]
push eax
push 0x1fff
push edi
push dword [ebp - 0x2278]
mov dword [ebp - 0x226c], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x498e99
mov eax, dword [ebp - 0x226c]
test eax, eax
je 0x498e99
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x22ac]
add ebx, eax
call fcn.004990a0
lea eax, [ebp - 0x22ac]
push eax
lea ecx, [ebp - 0x2294]
call fcn.004987b0
cmp ebx, 0x40000000
jb 0x498e20
mov edi, dword [ebp - 0x22ac]
test edi, edi
je 0x498ea6
push edi
call fcn.004d92bb
add esp, 4
mov edi, dword [ebp - 0x229c]
mov ebx, dword [ebp - 0x2278]
mov eax, dword [ebp - 0x225c]
mov dword [ebp - 0x225c], eax
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x2270]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x498ef0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x2290]
cmp ebx, dword [ebp - 0x228c]
je 0x498f46
xor edi, edi
test ebx, ebx
je 0x498f2c
push 1
push ebx
call fcn.004d927b
mov edi, eax
add esp, 8
test edi, edi
je 0x498f46
push ebx
push dword [ebp - 0x2294]
push ebx
push edi
call fcn.004d9456
push eax
call fcn.0043a8a0
add esp, 0x14
push dword [ebp - 0x2294]
call fcn.004d92bb
add esp, 4
mov dword [ebp - 0x2294], edi
mov dword [ebp - 0x228c], ebx
mov edi, dword [ebp - 0x2264]
lea eax, [ebp - 0x2294]
push eax
push dword [ebp - 0x225c]
mov edi, dword [edi]
push 6
push ecx
mov dword [ebp - 0x2268], esp
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi - 4], 0
lea edx, [edi - 4]
mov ecx, eax
jl 0x498f8a
cmp ecx, dword [edi - 0x10]
jne 0x498f8a
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x498fc3
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x49908b
mov ecx, dword [edi - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [edi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push edi
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.004d93d7
add esp, 0x10
mov ecx, dword [ebp - 0x2268]
lea eax, [ebx + 0x10]
mov ebx, dword [ebp - 0x22b0]
mov dword [ecx], eax
mov ecx, ebx
call fcn.00499190
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x498ff9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2294]
test eax, eax
je 0x49900c
push eax
call fcn.004d92bb
add esp, 4
mov esi, dword [ebp - 0x2260]
mov eax, dword [ebp - 0x2284]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x499036
push eax
call fcn.004d92bb
add esp, 4
mov dword [ebp - 0x2284], 0
mov dword [ebp - 0x2280], 0
mov dword [ebp - 0x227c], 0
test esi, esi
je 0x498a0d
push dword [ebp - 0x2298]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
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.004d89fb
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
call fcn.0043b9d0
int3