Function at 0x405f90
Capabilities:
Check if file exists
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x42acad
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x435a7c]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435a7c]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd0]
mov edi, ecx
push 0x42fe50
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], eax
call fcn.00402800
xor ebp, ebp
push 0x42fe50
lea ecx, [esp + 0x1c]
mov dword [esp + 0xcc], ebp
call fcn.00402800
push 0x42fe50
lea ecx, [esp + 0x20]
mov byte [esp + 0xcc], 1
call fcn.00402800
push 0x42fe50
lea ecx, [esp + 0x24]
mov byte [esp + 0xcc], 2
call fcn.00402800
mov ebx, 3
mov byte [esp + 0xc8], bl
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
cmp esi, ebp
jl 0x4060a4
push str.http:__
push eax
call fcn.004148b4
add esp, 8
cmp eax, ebp
je 0x4060a4
sub eax, dword [edi]
cmp eax, 0xffffffff
je 0x4060a4
sub esi, eax
sub esi, 7
push esi
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00406cf0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xcc], 4
call fcn.00402ad0
mov byte [esp + 0xc8], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4060b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4060b7
push edi
lea ecx, [esp + 0x1c]
push 0x42fc04
push ecx
call fcn.004027e0
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebp
jle 0x406184
push 0x2f
push eax
call fcn.00414fc3
add esp, 8
cmp eax, ebp
je 0x406184
sub eax, dword [esp + 0x18]
mov esi, eax
cmp esi, 0xffffffff
je 0x406184
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.00406d70
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xcc], 5
call fcn.00402ad0
mov byte [esp + 0xc8], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40612e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
sub eax, esi
sub eax, 1
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.00406cf0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xcc], 6
call fcn.00402ad0
mov byte [esp + 0xc8], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4061a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4061a1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402ad0
push ebp
push 0x42fe50
lea ecx, [esp + 0x28]
call fcn.00401930
push ebp
push ebp
push ebp
mov edi, 1
push edi
push str.TTS_TTK_Application
call dword [0x42c454]
mov esi, eax
cmp esi, ebp
jne 0x406280
cmp byte [esp + 0xd4], 0
je 0x4061d6
push 0x42fd3c
call fcn.004065d0
add esp, 4
mov byte [esp + 0xc8], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4061fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc8], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406226
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc8], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40624e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc8], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406279
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4064e9
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x40629a
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401830
mov eax, dword [esp + 0x1c]
push ebp
push ebp
push ebx
push ebp
push ebp
push 0x50
push eax
push esi
call dword [0x42c458]
mov esi, eax
cmp esi, ebp
jne 0x4062c7
cmp byte [esp + 0xd4], 0
je 0x4061d6
push 0x42fd64
jmp 0x4061ce
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], 0x42fd90
mov dword [esp + 0x38], ebp
cmp dword [eax - 4], edi
jle 0x4062ed
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401830
mov eax, dword [esp + 0x20]
push ebp
push 0x4000000
lea edx, [esp + 0x3c]
push edx
push ebp
push ebp
push eax
push 0x42fd94
push esi
call dword [0x42c45c]
mov edi, eax
cmp edi, ebp
jne 0x406345
cmp byte [esp + 0xd4], 0
je 0x406324
push 0x42fd98
call fcn.004065d0
add esp, 4
mov byte [esp + 0xc8], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4061f2
push ebp
push ebp
push ebp
push ebp
push edi
call dword [0x42c448]
cmp eax, ebp
jne 0x406384
cmp byte [esp + 0xd4], 0
je 0x4061d6
push ebp
lea ecx, [esp + 0x2c]
push 0x42fdc4
push ecx
call fcn.004027e0
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.004070b0
push eax
jmp 0x4061ce
mov esi, dword [esp + 0x30]
push esi
call dword [0x42c2cc]
cmp eax, 1
jne 0x40639b
push esi
call dword [0x42c264]
push 0x7f
lea ecx, [esp + 0x41]
push ebp
push ecx
mov byte [esp + 0x48], 0
call fcn.00416ba0
mov ebp, dword [0x42c460]
add esp, 0xc
mov dword [esp + 0x2c], 0xffffffff
cmp dword [esp + 0x2c], 0
je 0x40642a
push 0x80
lea edx, [esp + 0x40]
push 0
push edx
call fcn.00416ba0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0x7f
lea ecx, [esp + 0x44]
push ecx
push edi
call ebp
mov edx, dword [esp + 0x30]
push 0x42fe0c
mov esi, eax
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00415833
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x406426
lea ecx, [esp + 0x3c]
push ecx
push 0x42fc04
push eax
call fcn.00415883
mov edx, dword [esp + 0x30]
push edx
call fcn.00415a44
add esp, 0x10
test esi, esi
jne 0x4063be
cmp byte [esp + 0xd4], 0
je 0x406441
push 0x42fdf0
call fcn.004065d0
add esp, 4
mov byte [esp + 0xc8], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406469
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc8], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406491
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc8], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc8], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00414b37
add esp, 0xb8
ret