Function at 0x402121
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, 0x440e39
call fcn.0041e7e0
mov eax, 0x2068
call fcn.0041f190
mov eax, dword [0x459790]
push ebx
push esi
push edi
push dword [0x4570c0]
mov esi, ecx
lea ecx, [ebp - 0x2034]
mov dword [ebp - 0x10], eax
call fcn.0040200e
and dword [ebp - 4], 0
call fcn.0043776a
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, 0x443a1c
je 0x402318
mov ebx, 0x4438dc
cmp dword [ebp - 0x201c], 0
je 0x402318
lea eax, [ebp - 0x2028]
push eax
lea ecx, [esi + 0x28]
call fcn.00416c9e
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.00416c9e
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.00401ea1
push str.Content_Disposition:_form_data__name_
push eax
lea eax, [ebp - 0x2040]
push eax
mov byte [ebp - 4], 5
call fcn.00401ea1
lea ecx, [ebp - 0x2024]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
mov byte [ebp - 4], 6
call fcn.00401e31
push str.__r_n_r_n
push eax
lea eax, [ebp - 0x2014]
push eax
mov byte [ebp - 4], 7
call fcn.00401ea1
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2030]
push eax
mov byte [ebp - 4], 8
call fcn.00401e31
add esp, 0x48
push ebx
push eax
lea eax, [ebp - 0x2038]
push eax
mov byte [ebp - 4], 9
call fcn.00401ea1
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 0x402194
push edi
lea eax, [ebp - 0x203c]
push eax
lea eax, [ebp - 0x2044]
push eax
call fcn.00401ea1
lea ecx, [ebp - 0x2034]
push ecx
push eax
lea eax, [ebp - 0x202c]
push eax
mov byte [ebp - 4], 0xb
call fcn.00401e31
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.00401ea1
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.00401ea1
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.00437688
pop ecx
lea ecx, [ebp - 0x2024]
mov dword [ebp - 0x2018], eax
call fcn.00401bed
mov ebx, dword [ebp - 0x2024]
push dword [ebx - 0xc]
push eax
push dword [ebp - 0x2018]
call fcn.0041e9c0
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 0x402447
xor bl, bl
jmp 0x402720
mov eax, dword [ebp - 0x2014]
lea ecx, [ebp - 0x2028]
add ebx, eax
call fcn.00401bed
mov ecx, dword [ebp - 0x2028]
push dword [ecx - 0xc]
push eax
push ebx
call fcn.0041e9c0
push 0x28
pop ebx
push ebx
lea eax, [ebp - 0x2074]
push 0
push eax
call fcn.0041f0f0
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 0x40248e
cmp dword [ebp - 0x2014], 0
je 0x402440
mov eax, dword [ebp - 0x2018]
and dword [ebp - 0x2038], 0
mov dword [ebp - 0x2020], edi
mov dword [ebp - 0x2018], eax
call fcn.0043d3ed
mov ebx, dword [eax + 4]
mov ecx, dword [ebx + 0x11c]
test ecx, ecx
je 0x402518
push 0x3ed
call fcn.00436917
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 0x4025c5
mov edi, dword [ebp - 0x2020]
and dword [ebp - 0x2030], 0
mov eax, 0x1000
cmp edi, eax
jb 0x40253f
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 0x40256d
and dword [ebp - 0x2014], 0
xor edx, edx
cmp dword [ebp - 0x2014], edx
je 0x4025b2
mov ecx, dword [ebp - 0x2030]
cmp ecx, edi
jne 0x4025b2
sub dword [ebp - 0x2020], ecx
add dword [ebp - 0x2018], ecx
inc dword [ebp - 0x201c]
cmp dword [ebx + 0x11c], edx
je 0x4025b8
test al, al
jne 0x4025b8
push dword [ebp - 0x201c]
mov ecx, dword [ebp - 0x2038]
call fcn.00401bd6
jmp 0x4025b8
mov dword [ebp - 0x2020], edx
cmp dword [ebp - 0x2020], 0
ja 0x402527
mov ecx, dword [ebx + 0x11c]
test ecx, ecx
je 0x4025df
cmp byte [ebx + 0x140], 0
jne 0x4025df
push 0
call fcn.00436a8f
xor eax, eax
cmp dword [ebp - 0x2014], eax
je 0x402440
push eax
push eax
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
je 0x402440
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 0x402440
cmp dword [edi], 0xc8
jne 0x40271e
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 0x40271e
lea eax, [ebp - 0x2010]
push str.text_html
push eax
call fcn.0041f03d
test eax, eax
pop ecx
pop ecx
jne 0x402698
lea eax, [ebp - 0x2010]
push str.text_xml
push eax
call fcn.0041f03d
test eax, eax
pop ecx
pop ecx
je 0x40271e
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 0x402716
cmp dword [ebp - 0x2014], ebx
jbe 0x40271c
call fcn.0043776a
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 0x4026a0
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.0041f181
leave
ret