Function at 0x4021e0
Capabilities:
Get file size
Read and send data from client to server
Read file on windows
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x411dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebp
push esi
push edi
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x74]
push 0
push 0x806cc200
push 0
push 0
push 0
push eax
push str.POST
push ecx
mov dword [esp + 0x8c], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
jne 0x40225d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_open_request_handle:__lu_n
call fcn.00409d68
mov eax, dword [esp + 0x80]
mov ecx, dword [0x415044]
add esp, 8
lea edx, [eax - 0xc]
cmp edx, ecx
jmp 0x402633
mov al, byte [esp + 0x78]
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call fcn.00403920
push 0x2d
push 0x1b
lea ecx, [esp + 0x38]
call fcn.00403860
mov byte [esp + 0x6c], 1
call fcn.00409dfb
and eax, 0xffff
push eax
call fcn.00409dfb
and eax, 0xffff
push eax
call fcn.00409dfb
and eax, 0xffff
push eax
call fcn.00409dfb
and eax, 0xffff
lea ecx, [esp + 0x5c]
push eax
push str._04X_04X_04X_04X
push ecx
call fcn.00409da9
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x50]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.004037a0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
push eax
push str.Content_Type:_multipart_form_data__boundary
push ecx
call fcn.00403e50
add esp, 0xc
mov eax, dword [esp + 0x44]
mov byte [esp + 0x6c], 2
test eax, eax
jne 0x402306
mov eax, 0x4131a0
push 0x20000000
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov dl, byte [esp + 0x78]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
call fcn.00403920
mov edi, 0x4183cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4183cc
lea ecx, [esp + 0x18]
call fcn.00403c20
mov edi, 0x4151fc
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x6c], 3
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4151fc
lea ecx, [esp + 0x18]
call fcn.004037a0
mov eax, dword [0x41319c]
lea ecx, [esp + 0x30]
push eax
push 0
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403b40
mov edi, 0x4151f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4151f8
lea ecx, [esp + 0x18]
call fcn.004037a0
mov edi, str.Content_Disposition:_form_data__name_report___filename_crashreport.zip_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Content_Disposition:_form_data__name_report___filename_crashreport.zip_
lea ecx, [esp + 0x18]
call fcn.004037a0
mov edi, 0x4151f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4151f8
lea ecx, [esp + 0x18]
call fcn.004037a0
mov edi, str.Content_Type:_application_octet_stream
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Content_Type:_application_octet_stream
lea ecx, [esp + 0x18]
call fcn.004037a0
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 + 0x18]
call fcn.004037a0
mov dl, byte [esp + 0x78]
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], dl
call fcn.00403920
mov edi, 0x4183cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4183cc
lea ecx, [esp + 0x28]
call fcn.00403c20
mov edi, str._r_n__
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x6c], 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_n__
lea ecx, [esp + 0x28]
call fcn.004037a0
mov eax, dword [0x41319c]
lea ecx, [esp + 0x30]
push eax
push 0
push ecx
lea ecx, [esp + 0x2c]
call fcn.00403b40
mov edi, str.___r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.___r_n
lea ecx, [esp + 0x28]
call fcn.004037a0
mov esi, dword [esp + 0x78]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x402527
push esi
push str._nFailed_to_open_local_file__s.
call fcn.00409d68
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 3
push 1
call fcn.00403920
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 2
call fcn.00403920
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 1
call fcn.00403920
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 0
call fcn.00403920
mov eax, dword [0x415044]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x40264c
add esi, 0xfffffff4
jmp 0x402638
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add ecx, edx
mov dword [esp + 0x80], eax
add ecx, eax
push ecx
mov dword [esp + 0x7c], ecx
call fcn.00409a86
mov esi, dword [esp + 0x1c]
add esp, 4
test esi, esi
mov ebx, eax
jne 0x402560
mov esi, 0x4131a0
mov ecx, dword [esp + 0x1c]
mov edi, ebx
mov eax, ecx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x84]
add eax, ebx
push ecx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x4025a1
mov esi, 0x4131a0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x2c]
push ebp
lea edi, [edx + ebx]
add edi, eax
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]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x10]
push ecx
xor esi, esi
push ebx
push esi
push esi
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
pop ebx
jne 0x402662
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 3
call fcn.00403920
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 2
call fcn.00403920
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 1
call fcn.00403920
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 0
call fcn.00403920
mov eax, dword [esp + 0x78]
mov edx, dword [0x415044]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40264c
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40264c
push esi
call fcn.00409660
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 0xc
mov ecx, dword [esp + 0x24]
cmp ecx, esi
je 0x402686
mov al, byte [ecx - 1]
test al, al
je 0x40267c
cmp al, 0xff
je 0x40267c
dec al
mov byte [ecx - 1], al
jmp 0x402686
dec ecx
push ecx
call fcn.00409660
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], esi
cmp ecx, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
je 0x4026b6
mov al, byte [ecx - 1]
test al, al
je 0x4026ac
cmp al, 0xff
je 0x4026ac
dec al
mov byte [ecx - 1], al
jmp 0x4026b6
dec ecx
push ecx
call fcn.00409660
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], esi
cmp ecx, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
je 0x4026e6
mov al, byte [ecx - 1]
test al, al
je 0x4026dc
cmp al, 0xff
je 0x4026dc
dec al
mov byte [ecx - 1], al
jmp 0x4026e6
dec ecx
push ecx
call fcn.00409660
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x44], esi
cmp ecx, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
je 0x402716
mov al, byte [ecx - 1]
test al, al
je 0x40270c
cmp al, 0xff
je 0x40270c
dec al
mov byte [ecx - 1], al
jmp 0x402716
dec ecx
push ecx
call fcn.00409660
add esp, 4
mov eax, dword [esp + 0x78]
mov ecx, dword [0x415044]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
lea edx, [eax - 0xc]
mov dword [esp + 0x3c], esi
cmp edx, ecx
je 0x40274a
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40274a
push esi
call fcn.00409660
add esp, 4
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x64
ret 0xc