Function at 0x59e7b0
Capabilities:
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x65f810]
xor eax, esp
mov dword [esp + 0x29c], eax
mov eax, dword [esp + 0x2ac]
mov ecx, dword [esp + 0x2b8]
mov edx, dword [esp + 0x2c0]
push ebx
mov ebx, dword [esp + 0x2ac]
push ebp
push esi
mov esi, dword [esp + 0x2b0]
push edi
push 0x38
mov dword [esp + 0x1c], eax
xor ebp, ebp
lea eax, [esp + 0x78]
push ebp
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x48], edx
call fcn.00578cb0
add esp, 0xc
lea edx, [esp + 0x70]
push edx
push ebp
lea ecx, [esp + 0xb4]
push esi
mov dword [esp + 0x40], 0x5f32d0
mov dword [esp + 0x44], ebp
mov edi, 0x84080000
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x50], 4
mov dword [esp + 0x7c], 0x3c
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], 0xff
mov dword [esp + 0xac], 1
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x59e8d2
xor eax, eax
cmp dword [esp + 0x7c], 4
push ebp
push ebp
sete al
push ebp
push ebp
push 0x5f0e20
mov esi, eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x10], eax
cmp eax, ebp
je 0x59e8d2
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
push ebp
push ebp
push 3
push ebp
push ebp
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x59e8d9
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x59eb8b
cmp esi, ebp
je 0x59e8e2
mov edi, 0x84880000
cmp dword [esp + 0x18], ebp
jne 0x59e91e
cmp dword [esp + 0x2c4], ebp
jne 0x59e91e
mov edx, dword [esp + 0x9c]
push ebp
push edi
lea ecx, [esp + 0x3c]
push ecx
push ebp
cmp esi, ebp
jne 0x59e911
push str.HTTP_1.0
push edx
push 0x61da84
jmp 0x59e938
push 0x5f32d8
push edx
push 0x61da84
jmp 0x59e938
mov edx, dword [esp + 0x9c]
push ebp
push edi
lea ecx, [esp + 0x3c]
push ecx
push ebp
push 0x5f32d8
push edx
push 0x5f1de0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebp
jne 0x59e960
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
xor eax, eax
jmp 0x59eb8b
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x20]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x59e98f
or dword [esp + 0x1c], 0x80
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
xor eax, eax
cmp dword [esp + 0x18], ebp
je 0x59ea9e
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebx
cmp ebx, ebp
je 0x59e9f1
mov eax, ebx
lea edx, [eax + 2]
jmp 0x59e9e0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x59e9e0
sub eax, edx
sar eax, 1
jmp 0x59e9f3
xor eax, eax
mov ebx, dword [esp + 0x2c0]
push ebp
push ebp
push ebp
lea edx, [esp + 0x54]
push edx
push esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], ebx
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x59ea7a
cmp ebx, ebp
jle 0x59ea6c
mov edi, 0x400
mov ebp, ebx
cmp edi, ebx
mov dword [esp + 0x40], 0
mov eax, ebp
jg 0x59ea37
mov eax, 0x400
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + edi - 0x400]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x59ea6a
add edi, 0x400
lea edx, [edi - 0x400]
sub ebp, 0x400
cmp edx, ebx
jl 0x59ea24
xor ebp, ebp
push ebp
push ebp
push ebp
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x59eae3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
xor eax, eax
jmp 0x59eb8b
cmp ebx, ebp
je 0x59eab6
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x59eaa7
sub eax, edx
sar eax, 1
push ebp
push ebp
push eax
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x59eae3
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
xor eax, eax
jmp 0x59eb8b
mov ebx, dword [esp + 0x2cc]
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x59eb70
cmp dword [esp + 0x30], 0xffffffff
jne 0x59eb36
push ebp
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
push 0x20000013
push esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x59eac5
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
add ecx, eax
mov dword [esp + 0x2c], ecx
cmp eax, ebp
je 0x59eb62
lea edx, [esp + 0x20]
push edx
mov eax, ebx
sub eax, ecx
push eax
add ecx, edi
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x59eb00
jmp 0x59eb70
mov edx, dword [esp + 0x3c]
mov dword [edx], ecx
mov dword [esp + 0x28], 1
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005792fc
add esp, 0x2a0
ret