Function at 0x40a010
Capabilities:
Connect to http server
Create http request
Get file size
Read and send data from client to server
Read data from internet
Read file on windows
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x4694a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xa0]
mov dword [esp + 0x9c], ebp
push 0xc800
rep stosd dword es:[edi], eax
mov dword [esp + 0xd0], 1
call fcn.0045da09
mov esi, dword [esp + 0xe8]
add esp, 4
mov ebx, eax
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x7c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x34], 0xea60
mov byte [esp + 0x7c], al
call fcn.00404a40
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x80]
call fcn.004046d0
lea ecx, [esp + 0x78]
push str..ico
lea edx, [esp + 0x90]
push ecx
push edx
mov byte [esp + 0xd8], 2
call fcn.00407aa0
add esp, 0xc
mov ecx, dword [0x46f7b0]
mov byte [esp + 0xcc], 3
push ecx
push ebp
push eax
lea ecx, [esp + 0x84]
call fcn.004044d0
push 1
lea ecx, [esp + 0x90]
mov byte [esp + 0xd0], 2
call fcn.00404a40
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], dl
call fcn.00404a40
mov edi, str._____________________________40099aabb3793
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._____________________________40099aabb3793
lea ecx, [esp + 0x54]
call fcn.004046d0
mov al, byte [esp + 0x13]
mov byte [esp + 0xcc], 4
mov byte [esp + 0x68], al
push ebp
lea ecx, [esp + 0x6c]
call fcn.00404a40
mov edi, str.Content_Type:_multipart_form_data__boundary
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Content_Type:_multipart_form_data__boundary
lea ecx, [esp + 0x70]
call fcn.004046d0
mov ecx, dword [0x46f7b0]
lea edx, [esp + 0x4c]
push ecx
push ebp
push edx
lea ecx, [esp + 0x74]
mov byte [esp + 0xd8], 5
call fcn.00404330
mov edi, 0x4876cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4876cc
lea ecx, [esp + 0x70]
call fcn.00404410
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call fcn.00404a40
mov edi, 0x4876c8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4876c8
lea ecx, [esp + 0x40]
call fcn.004046d0
mov ecx, dword [0x46f7b0]
lea edx, [esp + 0x4c]
push ecx
push ebp
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0xd8], 6
call fcn.00404330
mov edi, str._r_nContent_Disposition:_form_data__filename_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_nContent_Disposition:_form_data__filename_
lea ecx, [esp + 0x40]
call fcn.00404410
mov eax, dword [0x46f7b0]
lea ecx, [esp + 0x78]
push eax
push ebp
push ecx
lea ecx, [esp + 0x44]
call fcn.00404330
mov edi, str.____name_upload_data_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.____name_upload_data_
lea ecx, [esp + 0x40]
call fcn.00404410
mov edi, str.__r_nContent_Type:_text_ml_r_n_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__r_nContent_Type:_text_ml_r_n_r_n
lea ecx, [esp + 0x40]
call fcn.00404410
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], dl
call fcn.00404a40
mov edi, 0x4876cc
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.00405b60
test al, al
je 0x40a2c1
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, ecx
mov esi, 0x4876cc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00405b40
mov edi, 0x4876c8
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xcc], 7
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4876c8
lea ecx, [esp + 0x20]
call fcn.00404410
mov ecx, dword [0x46f7b0]
lea edx, [esp + 0x4c]
push ecx
push 0
push edx
lea ecx, [esp + 0x24]
call fcn.00404330
mov edi, str._r_nContent_Disposition:_form_data__name_identity_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_nContent_Disposition:_form_data__name_identity_
lea ecx, [esp + 0x20]
call fcn.00404410
mov edi, str._r_n_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_n_r_n
lea ecx, [esp + 0x20]
call fcn.00404410
mov edx, dword [esp + 0xe4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00404410
mov edi, 0x4876cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4876cc
lea ecx, [esp + 0x20]
call fcn.00404410
mov edi, 0x4876c8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4876c8
lea ecx, [esp + 0x20]
call fcn.00404410
mov eax, dword [0x46f7b0]
lea ecx, [esp + 0x4c]
push eax
push 0
push ecx
lea ecx, [esp + 0x24]
call fcn.00404330
mov edi, str._r_nContent_Disposition:_form_data__name_PID_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_nContent_Disposition:_form_data__name_PID_
lea ecx, [esp + 0x20]
call fcn.00404410
mov edi, str._r_n_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_n_r_n
lea ecx, [esp + 0x20]
call fcn.00404410
mov edi, dword [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
mov esi, edi
repne scasb al, byte es:[edi]
mov edx, dword [0x46f7b0]
not ecx
dec ecx
mov ebp, ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
cmp edx, ebp
ja 0x40a410
call fcn.0044a09d
test ebp, ebp
jbe 0x40a454
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebx, [eax + ebp]
push ebx
call fcn.00405b60
test al, al
je 0x40a450
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ebx
lea edi, [edx + ecx]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00405b40
mov ebx, dword [esp + 0x2c]
mov edi, str._r_n__
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x46f7b0]
sub ecx, edx
cmp ecx, esi
ja 0x40a47a
call fcn.0044a09d
test esi, esi
jbe 0x40a4bf
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [edx + esi]
push ebp
call fcn.00405b60
test al, al
je 0x40a4bf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ebp
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, str._r_n__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00405b40
mov eax, dword [0x46f7b0]
lea ecx, [esp + 0x4c]
push eax
push 0
push ecx
lea ecx, [esp + 0x24]
call fcn.00404330
mov edi, str.___r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x46f7b0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
cmp edx, esi
ja 0x40a4fb
call fcn.0044a09d
xor edi, edi
cmp esi, edi
jbe 0x40a543
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x1c]
lea ebp, [eax + esi]
push ebp
call fcn.00405b60
test al, al
je 0x40a543
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str.___r_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00405b40
xor edi, edi
push edi
push edi
push edi
push 1
push str.HttpSendRequest
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esp + 0x2c], eax
je 0x40a82d
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xd4]
push 1
push edi
push 3
push edi
push edi
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [esp + 0x88], eax
jne 0x40a591
mov dword [esp + 0x14], edi
jmp 0x40a7f8
mov ecx, dword [esp + 0xd8]
push edi
push 0x4000000
push edi
push edi
push edi
push ecx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
xor esi, esi
cmp edi, esi
mov dword [esp + 0x5c], edi
jne 0x40a5c3
mov dword [esp + 0x14], esi
jmp 0x40a7f6
mov edx, dword [esp + 0xdc]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x34], ebp
jne 0x40a5f5
mov dword [esp + 0x14], esi
jmp 0x40a7f6
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [esp + 0x30]
push 4
push eax
push 2
push edi
call esi
lea ecx, [esp + 0x30]
push 4
push ecx
push 5
push edi
call esi
lea edx, [esp + 0x30]
push 4
push edx
push 7
push edi
call esi
mov eax, dword [esp + 0x6c]
xor esi, esi
cmp eax, esi
jne 0x40a62e
mov eax, 0x46f7ac
mov ecx, dword [esp + 0x70]
push 0x20000000
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x40a653
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], esi
jmp 0x40a7f6
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
add ecx, edx
push esi
push 8
lea edx, [esp + 0xa4]
push esi
add ecx, eax
push edx
push edi
mov dword [esp + 0xb0], 0x28
mov dword [esp + 0xcc], ecx
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
jne 0x40a69f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], esi
jmp 0x40a7f6
mov esi, dword [esp + 0x64]
inc esi
cmp esi, 1
mov dword [esp + 0x64], esi
jne 0x40a6e5
mov eax, dword [esp + 0x40]
cmp eax, 0xc800
jbe 0x40a6bd
mov eax, 0xc7ff
mov ecx, eax
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 0x28], ecx
jne 0x40a6d0
mov eax, 0x46f7ac
push ecx
push eax
push ebx
call fcn.0043ab80
mov eax, dword [esp + 0x34]
add esp, 0xc
mov byte [eax + ebx], 0
jmp 0x40a6fd
lea ecx, [esp + 0x28]
push 0
push ecx
push 0xc800
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a744
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
push eax
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x40a73e
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x28]
add edx, ecx
cmp eax, 0xc800
mov dword [esp + 0x60], edx
jae 0x40a731
cmp esi, 1
ja 0x40a751
cmp esi, 0x7d0
ja 0x40a751
jmp 0x40a69f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], 0
jmp 0x40a7f6
mov ecx, dword [esp + 0x20]
cmp ecx, 0xc800
jbe 0x40a762
mov ecx, 0xc7ff
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x28], ecx
jne 0x40a775
mov eax, 0x46f7ac
push ecx
push eax
push ebx
call fcn.0043ab80
mov edx, dword [esp + 0x34]
add esp, 0xc
lea eax, [esp + 0x48]
mov byte [edx + ebx], 0
mov ecx, dword [esp + 0x28]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetWriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 8
push esi
push edi
mov dword [esp + 0x44], esi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
jne 0x40a7ba
mov dword [esp + 0x14], esi
jmp 0x40a7f6
lea edx, [esp + 0x28]
push edx
push 0xff
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40a7d6
mov dword [esp + 0x14], esi
jmp 0x40a7f6
mov eax, dword [esp + 0x28]
push str.UW10_200:
push ebx
mov byte [eax + ebx], 0
call fcn.00445c80
add esp, 8
neg eax
sbb eax, eax
neg eax
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
mov eax, dword [esp + 0x5c]
cmp eax, edi
je 0x40a810
push eax
call esi
mov eax, dword [esp + 0x88]
cmp eax, edi
je 0x40a81e
push eax
call esi
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x40a82d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
je 0x40a83a
push ebx
call fcn.0045da32
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40a85f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a856
cmp al, 0xff
je 0x40a856
dec al
mov byte [ecx], al
jmp 0x40a85f
push ecx
call fcn.0045da32
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], edi
cmp eax, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x40a890
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a887
cmp al, 0xff
je 0x40a887
dec al
mov byte [ecx], al
jmp 0x40a890
push ecx
call fcn.0045da32
add esp, 4
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x3c], edi
cmp eax, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
je 0x40a8c1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a8b8
cmp al, 0xff
je 0x40a8b8
dec al
mov byte [ecx], al
jmp 0x40a8c1
push ecx
call fcn.0045da32
add esp, 4
mov eax, dword [esp + 0x50]
mov dword [esp + 0x6c], edi
cmp eax, edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
je 0x40a8f2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a8e9
cmp al, 0xff
je 0x40a8e9
dec al
mov byte [ecx], al
jmp 0x40a8f2
push ecx
call fcn.0045da32
add esp, 4
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x50], edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
je 0x40a923
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a91a
cmp al, 0xff
je 0x40a91a
dec al
mov byte [ecx], al
jmp 0x40a923
push ecx
call fcn.0045da32
add esp, 4
lea ecx, [esp + 0xd4]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov byte [esp + 0xcc], 0
call fcn.0045dcc8
lea ecx, [esp + 0xe4]
mov dword [esp + 0xcc], 0xffffffff
call fcn.0045dcc8
mov ecx, dword [esp + 0xc4]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret 0x14