Function at 0x489655
Capabilities:
Send data

Disassembly:
push 0x44
mov eax, 0x49cf91
call fcn.00497265
mov esi, ecx
mov dword [ebp - 0x34], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [0x4cb014]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0045e6a5
mov ecx, esi
call fcn.004887cb
test eax, eax
jne 0x4896b5
push 1
push ebx
push ecx
mov ecx, esp
push str.Error_formatting_text_part_header.
call fcn.0045f630
mov ecx, dword [esi + 0x14]
call fcn.004620ac
jmp 0x4898ca
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0046b68b
mov edi, eax
test edi, edi
jne 0x4896e0
push 1
push ebx
push ecx
mov ecx, esp
push str.Error_converting_text_part_header_to_ASCII.
jmp 0x489708
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
push eax
push edi
call sub.MSVCR120.dll_strlen
pop ecx
push eax
push edi
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x489712
push 1
push ebx
push ecx
mov ecx, esp
push str.Error_uploading_text_part_header.
call fcn.0045f630
mov ecx, dword [esi + 0x14]
jmp 0x48974b
push dword [ebp - 0x38]
mov ecx, esi
call fcn.004892d5
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x3c]
lea edi, [esi + 4]
push eax
mov ecx, edi
call fcn.004899bf
mov esi, dword [ebp - 0x3c]
cmp esi, dword [edi]
jne 0x489755
push 1
push ebx
push ecx
mov ecx, esp
push str.Error_searching_for_text_part_header_name.
call fcn.0045f630
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx + 0x14]
call fcn.004620ac
jmp 0x4898be
mov edi, dword [ebp - 0x34]
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ebx
mov ecx, dword [edi + 0x14]
call fcn.00461fed
test al, al
jne 0x4898be
mov edx, 0x400
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, edx
cmova eax, edx
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x489823
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x14]
call fcn.00489a28
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x40]
mov dword [ebp - 0x34], ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x4897fb
push dword [ebp - 0x34]
mov ecx, edi
call fcn.004892d5
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
add eax, dword [ebp - 0x3c]
push ebx
push 1
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
call fcn.0046282b
mov ecx, dword [edi + 0x14]
call fcn.00461fed
mov edx, 0x400
test al, al
je 0x489776
jmp 0x4898be
push 1
push ebx
push ecx
mov ecx, esp
push str.Error_uploading_text_part_data.
call fcn.0045f630
mov ecx, dword [edi + 0x14]
call fcn.004620ac
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0046282b
jmp 0x4898be
mov eax, dword [0x4cb014]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0045e6a5
mov ecx, edi
call fcn.0048879c
test eax, eax
jne 0x489857
push 1
push ebx
push ecx
mov ecx, esp
push str.Error_formatting_text_part_footer.
jmp 0x48989a
push dword [ebp - 0x30]
lea ecx, [ebp - 0x50]
call fcn.0046b68b
mov esi, eax
test esi, esi
jne 0x489875
push 1
push ebx
push ecx
mov ecx, esp
push str.Error_converting_text_part_footer_to_ASCII.
jmp 0x48989a
lea eax, [ebp - 0x38]
push eax
push esi
call sub.MSVCR120.dll_strlen
pop ecx
push eax
push esi
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x4898a9
push 1
push ebx
push ecx
mov ecx, esp
push str.Error_uploading_text_part_footer.
call fcn.0045f630
mov ecx, dword [edi + 0x14]
call fcn.004620ac
jmp 0x4898b6
push dword [ebp - 0x38]
mov ecx, edi
call fcn.004892d5
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x30]
call fcn.0045e73f
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0045f6ac
lea ecx, [ebp - 0x44]
call fcn.0045e73f
lea ecx, [ebp + 0xc]
call fcn.0045e73f
mov eax, ebx
call fcn.00497214
ret 8