Function at 0x40b740
Capabilities:
Connect to http server
Create http request
Read and send data from client to server
Read data from internet
Read file on windows
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52597a
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x56e00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x440], edx
mov edi, ecx
mov dword [ebp - 0x418], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp + 0x10]
push 0x558e1c
mov dword [ebp - 0x444], 0
push eax
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 4], 1
call fcn.004b12d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40b7cd
call fcn.004b5f50
push 2
push 0
push ebx
call fcn.004b4d60
push ebx
call fcn.004a3e40
mov esi, eax
push ebx
mov dword [ebp - 0x438], esi
call fcn.004b7bf0
push esi
call fcn.004be140
add esp, 0x18
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x40b803
call fcn.004b5f50
push esi
push str.MEMORY_ALLOCATED_t___d___n
call fcn.00402270
push ebx
push esi
push 1
push dword [ebp - 0x418]
call fcn.004bcb40
push ebx
mov esi, eax
call fcn.004b7bf0
add esp, 0x1c
cmp esi, dword [ebp - 0x438]
je 0x40b835
call fcn.004b5f50
push ebx
call fcn.004b20a0
mov ebx, dword [ebp - 0x438]
xor ecx, ecx
mov eax, ebx
add eax, 0x800
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.004be140
push dword [ebp - 0x448]
mov dword [ebp - 0x438], eax
push str.Fulya
push str._____________________________7d82751e2bc0858
push str._s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n
push eax
call fcn.00402360
push dword [ebp - 0x43c]
mov esi, eax
mov eax, dword [ebp - 0x438]
add eax, esi
push str.Content_Type:__s_r_n
push eax
call fcn.00402360
add esi, eax
mov eax, dword [ebp - 0x438]
push ebx
add eax, esi
push str.Content_Length:__d_r_n
push eax
call fcn.00402360
add esi, eax
mov eax, dword [ebp - 0x438]
add eax, esi
push 0x558ea8
push eax
call fcn.00402360
add esi, eax
mov eax, dword [ebp - 0x438]
push ebx
push dword [ebp - 0x418]
add eax, esi
push eax
call fcn.00496d40
add esi, ebx
add esp, 0x48
mov ebx, dword [ebp - 0x438]
push 0x558ea8
lea eax, [esi + ebx]
push eax
call fcn.00402360
add esi, eax
push str._____________________________7d82751e2bc0858
push str._s___r_n
lea eax, [esi + ebx]
push eax
call fcn.00402360
add esp, 0x14
add esi, eax
push 0
push 0
push 0
push 0
push str.WINDOWS
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0x43c], ebx
test ebx, ebx
jne 0x40b92c
call fcn.004b5f50
movzx eax, word [0x573678]
push 1
push 0
push 3
push 0
push 0
push eax
push dword [ebp - 0x440]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
mov dword [ebp - 0x440], ebx
test ebx, ebx
jne 0x40b95c
call fcn.004b5f50
push 1
push dword [0x5738ac]
push 0
push 0
push 0
push dword [ebp - 0x44c]
push str.POST
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
jne 0x40b987
call fcn.004b5f50
mov ecx, str.Content_Type:_multipart_form_data__boundary___________________________7d82751e2bc0858
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b990
push esi
push dword [ebp - 0x438]
sub ecx, edx
push ecx
push str.Content_Type:_multipart_form_data__boundary___________________________7d82751e2bc0858
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40b9eb
call fcn.004b5f50
push dword [ebp - 0x43c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x440]
call esi
push ebx
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048cd50
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x434]
call fcn.004110e0
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x418]
push eax
push 0x3ff
lea eax, [ebp - 0x414]
push eax
push ebx
call esi
test eax, eax
je 0x40ba53
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x40ba53
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x434]
call fcn.00410ae0
mov eax, dword [ebp - 0x418]
cmp eax, 0x400
jae 0x40ba4e
mov byte [ebp + eax - 0x414], 0
jmp 0x40ba00
call fcn.0048d240
mov dword [edi], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
push 1
push 0
push 1
mov byte [ebp - 4], 4
call fcn.00419480
add esp, 0xc
mov dword [edi], eax
test eax, eax
je 0x40ba8c
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi]
mov dword [eax], edi
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], 0
cmp dword [edi + 0x18], 0x10
jb 0x40baa9
mov eax, dword [edi + 4]
jmp 0x40baac
lea eax, [edi + 4]
mov byte [eax], 0
mov ecx, edi
lea eax, [ebp - 0x434]
push eax
call fcn.00415250
or dword [ebp - 0x444], 1
mov eax, dword [ebp - 0x41c]
cmp eax, 0x10
jb 0x40badf
inc eax
push eax
push dword [ebp - 0x430]
call fcn.00419260
add esp, 8
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], 0
mov byte [ebp - 0x430], 0
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 6
call fcn.00416a30
lea ecx, [ebp - 0x434]
call fcn.00415cd0
mov eax, edi
jmp 0x40b9cf