Function at 0x40213a
Capabilities:
Check http status code
Get file size
Read and send data from client to server
Read data from internet
Read file on windows
Receive data
Send data

Disassembly:
mov eax, 0x442a76
call fcn.00420410
mov eax, 0x2068
call fcn.00420dc0
mov eax, dword [0x45b790]
push ebx
push esi
push edi
push dword [0x4590c0]
mov esi, ecx
lea ecx, [ebp - 0x2034]
mov dword [ebp - 0x10], eax
call fcn.00402027
and dword [ebp - 4], 0
call fcn.0043939a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x203c], eax
mov eax, dword [esi + 0x2c]
test eax, eax
mov ecx, dword [esi + 0x48]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2028], eax
mov dword [ebp - 0x201c], ecx
mov edi, 0x445a04
je 0x402331
mov ebx, 0x4458c4
cmp dword [ebp - 0x201c], 0
je 0x402331
lea eax, [ebp - 0x2028]
push eax
lea ecx, [esi + 0x28]
call fcn.00401bd6
push eax
lea ecx, [ebp - 0x2024]
call fcn.00401501
lea eax, [ebp - 0x201c]
push eax
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 2
call fcn.00401bd6
push eax
lea ecx, [ebp - 0x2018]
call fcn.00401501
lea eax, [ebp - 0x2034]
push eax
lea eax, [ebp - 0x202c]
push edi
push eax
mov byte [ebp - 4], 3
call fcn.00401763
push ebx
push eax
lea eax, [ebp - 0x2044]
push eax
mov byte [ebp - 4], 4
call fcn.00401eba
push str.Content_Disposition:_form_data__name_
push eax
lea eax, [ebp - 0x2040]
push eax
mov byte [ebp - 4], 5
call fcn.00401eba
lea ecx, [ebp - 0x2024]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
mov byte [ebp - 4], 6
call fcn.00401e4a
push str.__r_n_r_n
push eax
lea eax, [ebp - 0x2014]
push eax
mov byte [ebp - 4], 7
call fcn.00401eba
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2030]
push eax
mov byte [ebp - 4], 8
call fcn.00401e4a
add esp, 0x48
push ebx
push eax
lea eax, [ebp - 0x2038]
push eax
mov byte [ebp - 4], 9
call fcn.00401eba
add esp, 0xc
push eax
lea ecx, [ebp - 0x203c]
mov byte [ebp - 4], 0xa
call fcn.004017e4
mov ecx, dword [ebp - 0x2038]
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x2030]
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x2014]
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x2020]
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x2040]
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x2044]
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x202c]
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x2018]
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x2024]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401139
cmp dword [ebp - 0x2028], 0
jne 0x4021ad
push edi
lea eax, [ebp - 0x203c]
push eax
lea eax, [ebp - 0x2044]
push eax
call fcn.00401eba
lea ecx, [ebp - 0x2034]
push ecx
push eax
lea eax, [ebp - 0x202c]
push eax
mov byte [ebp - 4], 0xb
call fcn.00401e4a
push str._r_nContent_Disposition:_form_data__name_LocalFile___filename_minidump.zip__r_nContent_Type:_application_x_zip_compressed_r_n_r_n
push eax
lea eax, [ebp - 0x2024]
push eax
mov byte [ebp - 4], 0xc
call fcn.00401eba
add esp, 0x24
mov ecx, dword [ebp - 0x202c]
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x2044]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xe
call fcn.00401139
lea eax, [ebp - 0x2034]
push eax
lea eax, [ebp - 0x2040]
push str._r_n__
push eax
call fcn.00401763
push edi
push eax
lea eax, [ebp - 0x2028]
push eax
mov byte [ebp - 4], 0x10
call fcn.00401eba
add esp, 0x18
mov ecx, dword [ebp - 0x2040]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x12
call fcn.00401139
push 0
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x2028]
mov edi, dword [ecx - 0xc]
mov dword [ebp - 0x2014], eax
mov eax, dword [ebp - 0x2024]
mov eax, dword [eax - 0xc]
add edi, eax
add edi, dword [ebp - 0x2014]
push edi
call fcn.004392b8
pop ecx
lea ecx, [ebp - 0x2024]
mov dword [ebp - 0x2018], eax
call fcn.00401c06
mov ebx, dword [ebp - 0x2024]
push dword [ebx - 0xc]
push eax
push dword [ebp - 0x2018]
call fcn.004205f0
mov eax, dword [ebx - 0xc]
mov ecx, dword [ebp - 0x2018]
add esp, 0xc
lea ebx, [eax + ecx]
push 0
lea eax, [ebp - 0x204c]
push eax
push dword [ebp - 0x2014]
push ebx
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402460
xor bl, bl
jmp 0x402739
mov eax, dword [ebp - 0x2014]
lea ecx, [ebp - 0x2028]
add ebx, eax
call fcn.00401c06
mov ecx, dword [ebp - 0x2028]
push dword [ecx - 0xc]
push eax
push ebx
call fcn.004205f0
push 0x28
pop ebx
push ebx
lea eax, [ebp - 0x2074]
push 0
push eax
call fcn.00420d20
mov dword [ebp - 0x2074], ebx
add esp, 0x18
mov dword [ebp - 0x2058], edi
lea ebx, [esi + 0x1c]
push 0
push 8
push 0
lea eax, [ebp - 0x2074]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
push ebx
push dword [esi + 0x14]
mov dword [ebp - 0x2014], eax
call fcn.00401b20
test al, al
pop ecx
pop ecx
jne 0x4024a7
cmp dword [ebp - 0x2014], 0
je 0x402459
mov eax, dword [ebp - 0x2018]
and dword [ebp - 0x2038], 0
mov dword [ebp - 0x2020], edi
mov dword [ebp - 0x2018], eax
call fcn.0043f01d
mov ebx, dword [eax + 4]
mov ecx, dword [ebx + 0x11c]
test ecx, ecx
je 0x402531
push 0x3ed
call fcn.00438547
mov ecx, edi
shr ecx, 0xc
inc ecx
push ecx
push 0
push 0x406
push dword [eax + 0x1c]
mov dword [ebp - 0x2038], eax
call dword [sym.imp.USER32.dll_SendMessageA]
and dword [ebp - 0x201c], 0
test edi, edi
jbe 0x4025de
mov edi, dword [ebp - 0x2020]
and dword [ebp - 0x2030], 0
mov eax, 0x1000
cmp edi, eax
jb 0x402558
mov edi, eax
lea eax, [ebp - 0x2030]
push eax
push edi
push dword [ebp - 0x2018]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetWriteFile]
mov dword [ebp - 0x2014], eax
mov al, byte [ebx + 0x140]
test al, al
je 0x402586
and dword [ebp - 0x2014], 0
xor edx, edx
cmp dword [ebp - 0x2014], edx
je 0x4025cb
mov ecx, dword [ebp - 0x2030]
cmp ecx, edi
jne 0x4025cb
sub dword [ebp - 0x2020], ecx
add dword [ebp - 0x2018], ecx
inc dword [ebp - 0x201c]
cmp dword [ebx + 0x11c], edx
je 0x4025d1
test al, al
jne 0x4025d1
push dword [ebp - 0x201c]
mov ecx, dword [ebp - 0x2038]
call fcn.00401bef
jmp 0x4025d1
mov dword [ebp - 0x2020], edx
cmp dword [ebp - 0x2020], 0
ja 0x402540
mov ecx, dword [ebx + 0x11c]
test ecx, ecx
je 0x4025f8
cmp byte [ebx + 0x140], 0
jne 0x4025f8
push 0
call fcn.004386bf
xor eax, eax
cmp dword [ebp - 0x2014], eax
je 0x402459
push eax
push eax
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
je 0x402459
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 0
lea eax, [ebp - 0x2048]
push eax
lea edi, [esi + 0x1c]
push edi
push 0x20000013
push dword [esi + 0x14]
mov dword [ebp - 0x2048], 4
call ebx
test eax, eax
je 0x402459
cmp dword [edi], 0xc8
jne 0x402737
push 0
lea eax, [ebp - 0x202c]
push eax
lea eax, [ebp - 0x2010]
push eax
push 1
push dword [esi + 0x14]
mov edi, 0x1000
mov dword [ebp - 0x202c], edi
call ebx
test eax, eax
je 0x402737
lea eax, [ebp - 0x2010]
push str.text_html
push eax
call fcn.00420c6d
test eax, eax
pop ecx
pop ecx
jne 0x4026b1
lea eax, [ebp - 0x2010]
push str.text_xml
push eax
call fcn.00420c6d
test eax, eax
pop ecx
pop ecx
je 0x402737
xor ebx, ebx
mov dword [ebp - 0x2014], ebx
lea eax, [ebp - 0x2014]
push eax
push edi
lea eax, [ebp - 0x1010]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
je 0x40272f
cmp dword [ebp - 0x2014], ebx
jbe 0x402735
call fcn.0043939a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x201c], eax
push dword [ebp - 0x2014]
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x201c]
mov byte [ebp - 4], 0x13
call fcn.004015a2
lea eax, [ebp - 0x201c]
lea ecx, [esi + 0x18]
push eax
call fcn.004017e4
mov ecx, dword [ebp - 0x201c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x12
call fcn.00401139
cmp dword [ebp - 0x2014], ebx
jne 0x4026b9
mov bl, 1
mov ecx, dword [ebp - 0x2028]
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x2024]
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x203c]
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x2034]
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov al, bl
pop ebx
call fcn.00420db1
leave
ret