Function at 0x4ddcc0
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 0x56f872
mov eax, dword fs:[0]
push eax
mov eax, 0x22f0
call fcn.00527d30
mov eax, dword [0x5d6b80]
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 0x58a874
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x2298], eax
test eax, eax
je 0x4de3ce
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 0x4dde28
mov ecx, dword [ebx + 0x34]
xor esi, esi
test ecx, ecx
je 0x4dddb1
mov edx, dword [ebx + 0x2c]
mov eax, edx
cmp dword [eax], edi
jne 0x4dde13
inc esi
add eax, 4
cmp esi, ecx
jb 0x4ddda5
xor esi, esi
test esi, esi
je 0x4dde28
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 0xc]
test eax, eax
jne 0x4dde22
mov dword [ebp - 0x2264], esi
test esi, esi
je 0x4dde22
mov eax, dword [esi + 4]
test eax, eax
je 0x4ddde1
cmp dword [eax + 8], 0
jne 0x4dde18
cmp dword [eax + 4], 0
je 0x4dde18
test esi, esi
je 0x4dde22
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x4dde0b
mov eax, dword [esi + 0xc]
xor edx, edx
mov edi, dword [ebx + 0x34]
div edi
inc edx
cmp edx, edi
jae 0x4dde0b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + edx*4]
test eax, eax
cmovne ecx, eax
inc edx
test ecx, ecx
je 0x4dddf7
mov esi, ecx
test ecx, ecx
jne 0x4dddb7
jmp 0x4dde22
mov esi, dword [edx + esi*4]
jmp 0x4dddb3
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 0x4ddedd
lea eax, [ebx + 0x1c]
push eax
lea ecx, [ebp - 0x2284]
call fcn.00487ea0
lea edi, [ebx + 0x20]
push edi
lea ecx, [ebp - 0x2284]
call fcn.00487ea0
mov esi, dword [ebp - 0x2280]
test esi, esi
jle 0x4de3ea
push 0xffffffffffffffff
push 0
push dword [ebp - 0x2284]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jae 0x4ddec4
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 0xc]
test eax, eax
je 0x4dde9d
mov esi, 1
mov dword [ebp - 0x2260], esi
jmp 0x4de382
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 0x10]
test eax, eax
je 0x4de37c
mov eax, dword [edi]
test eax, eax
je 0x4de37c
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x4de37c
cmp eax, 0xffffffff
jne 0x4de37c
mov esi, 1
mov dword [ebp - 0x2260], esi
jmp 0x4de382
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 0x4ddf3b
cmp ecx, dword [esi - 0x10]
jne 0x4ddf3b
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4ddf74
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x4de3fb
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.0052628b
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.00525ee0
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 0x4de2b6
push 0
xor ebx, ebx
mov ecx, 0x1bb
cmp dword [ebp - 0x22f0], 4
mov eax, 0x50
push 0
push 3
sete bl
push 0
cmp ebx, 1
push 0
cmove eax, ecx
movzx eax, ax
push eax
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 0x4de2b6
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.0045a3a0
lea ecx, [ebp - 0x1258]
mov byte [ebp - 4], 4
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4de080
sub ecx, edx
lea eax, [ebp - 0x1258]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2270]
call fcn.00472540
push 0
cmp ebx, 1
mov ecx, 0x4800000
mov eax, 0x4000000
cmove eax, ecx
push eax
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 0x4de235
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 0x4de22e
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 0x4de222
mov eax, dword [ebp - 0x225c]
cmp eax, 0xc8
je 0x4de165
cmp eax, 0xc9
jne 0x4de222
xor edi, edi
mov dword [ebp - 0x226c], edi
mov dword [ebp - 0x22ac], edi
mov dword [ebp - 0x22a8], edi
mov dword [ebp - 0x22a4], edi
mov dword [ebp - 0x22a0], edi
mov byte [ebp - 4], 5
lea esp, [esp]
push 0xffffffffffffffff
push 0x2000
lea ecx, [ebp - 0x22ac]
call fcn.004de410
mov ebx, dword [ebp - 0x22ac]
lea eax, [ebp - 0x226c]
push eax
push 0x1fff
push ebx
push dword [ebp - 0x2278]
mov dword [ebp - 0x226c], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4de209
mov eax, dword [ebp - 0x226c]
test eax, eax
je 0x4de209
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x22ac]
add edi, eax
call fcn.004de410
lea eax, [ebp - 0x22ac]
push eax
lea ecx, [ebp - 0x2294]
call fcn.004ddaf0
cmp edi, 0x40000000
jb 0x4de190
mov ebx, dword [ebp - 0x22ac]
test ebx, ebx
je 0x4de216
push ebx
call fcn.0052616f
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 0x4de260
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 0x4de2b6
xor edi, edi
test ebx, ebx
je 0x4de29c
push 1
push ebx
call fcn.0052612f
mov edi, eax
add esp, 8
test edi, edi
je 0x4de2b6
push ebx
push dword [ebp - 0x2294]
push ebx
push edi
call fcn.0052630a
push eax
call fcn.0045a7e0
add esp, 0x14
push dword [ebp - 0x2294]
call fcn.0052616f
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 0x4de2fa
cmp ecx, dword [edi - 0x10]
jne 0x4de2fa
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4de333
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x4de3fb
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.0052628b
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.004de4f0
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 0x4de369
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2294]
test eax, eax
je 0x4de37c
push eax
call fcn.0052616f
add esp, 4
mov esi, dword [ebp - 0x2260]
mov eax, dword [ebp - 0x2284]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4de3a6
push eax
call fcn.0052616f
add esp, 4
mov dword [ebp - 0x2284], 0
mov dword [ebp - 0x2280], 0
mov dword [ebp - 0x227c], 0
test esi, esi
je 0x4ddd4d
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.00525878
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
call fcn.00494170
int3