Function at 0x401a50
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
sub esp, 0x38
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
mov edx, dword [str.Microcosm_UnLock_It]
push ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [0x422954]
push ebp
push esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov eax, dword [0x422960]
mov dword [esp + 0x30], eax
xor eax, eax
push eax
push eax
mov dword [esp + 0x18], ecx
mov ecx, dword [0x422958]
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], edx
mov edx, dword [0x42295c]
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
mov dword [esp + 0x20], 0x1d4c0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
test ebp, ebp
jne 0x401af5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov dword [0x42836c], eax
lea eax, [ebp + 3]
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00411e16
add esp, 0x38
ret
mov eax, dword [esi + 0x70]
lea edx, [eax + 1]
jmp 0x401b00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b00
sub eax, edx
mov ecx, eax
mov eax, 0x88888889
mul ecx
shr edx, 3
mov dword [esp + 0xc], edx
cmp edx, 0x7530
jae 0x401b29
mov dword [esp + 0xc], 0x7530
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea edx, [esp + 0x14]
push edx
push 5
push ebp
call edi
push 4
lea eax, [esp + 0x14]
push eax
push 6
push ebp
call edi
mov ecx, dword [esp + 0x58]
push 0
push 0
push 3
push 0
push str.microcosm
push ecx
push ebx
push ebp
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x401b94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov dword [0x42836c], eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [edi + 4]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00411e16
add esp, 0x38
ret
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x20]
push 0
push edx
push 0
push 0
push 0
push esi
push eax
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
jne 0x401be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
mov dword [0x42836c], eax
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
lea eax, [ebx + 5]
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00411e16
add esp, 0x38
ret
mov ecx, dword [esp + 0x14]
push 0x10000000
push 0xffffffffffffffff
push ecx
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x401c2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
mov dword [0x42836c], eax
call esi
push edi
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00411e16
add esp, 0x38
ret
mov edx, dword [esi + 0x70]
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c36
sub eax, dword [esp + 0x14]
push eax
push edx
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x401c84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
mov dword [0x42836c], eax
call esi
push edi
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00411e16
add esp, 0x38
ret
push 1
push 0x2800
xor edi, edi
call fcn.00412704
push edi
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], 0x2800
call fcn.0041241b
add esp, 0xc
mov eax, dword [esi + 0x6c]
cmp edi, eax
jne 0x401cc8
mov edx, dword [esi + 0x68]
add eax, 0x2800
push eax
push edx
call fcn.004124e9
add esp, 8
add dword [esi + 0x6c], 0x2800
mov dword [esi + 0x68], eax
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x68]
lea eax, [esp + 0x18]
push eax
sub ecx, edi
push ecx
add edx, edi
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x18]
cmp eax, 1
jne 0x401cef
test ecx, ecx
je 0x401cf8
add edi, ecx
test ecx, ecx
jle 0x401cf8
cmp eax, 1
je 0x401ca5
mov eax, dword [esi + 0x68]
mov byte [edi + eax], 0
mov dword [esi + 0x6c], edi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
push ebp
call esi
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00411e16
add esp, 0x38
ret