Function at 0x10026a30
Capabilities:
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1025aab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x10], edi
cmp dword [edi + 0x308], ebp
je 0x10026f37
cmp dword [edi + 0x30c], ebp
jne 0x10026f37
push ebx
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [edi + 0x1f0]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebp
call fcn.10055b20
lea esi, [edi + 0x1c0]
push eax
mov ecx, esi
mov dword [esp + 0x38], ebp
call fcn.1008ee20
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.1008ec90
mov eax, dword [esi]
mov ecx, dword [edi + 0x1bc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x10026ef3
mov esi, dword [esi]
push ebp
push ebp
push 3
push ebp
push 3
push connect
push esi
mov dword [esp + 0x44], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [0x1030aa70]
cmp eax, ebp
mov dword [esp + 0x20], esi
je 0x10026b05
push esi
push str.CSMTPHandler::DecodeCacheMail_1__hFile:_p_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
cmp esi, 0xffffffff
je 0x10026e71
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [0x1030aa70]
cmp eax, ebp
je 0x10026b48
mov edx, dword [esp + 0x24]
push edx
push ebx
push str.CSMTPHandler::DecodeCacheMail_2__FileSizeL:_d__FileSizeH:_d_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x10026b5a
cmp ebx, ebp
je 0x10026f2b
jmp 0x10026b60
ja 0x10026f2b
cmp ebx, 0x40
jb 0x10026f2b
cmp ebx, 0x6400000
ja 0x10026f2b
lea esi, [ebx + 1]
push esi
call fcn.1024ac71
mov ebp, eax
mov eax, dword [0x1030aa70]
add esp, 4
test eax, eax
je 0x10026ba6
push ebp
push str.CSMTPHandler::DecodeCacheMail_3__bufInput:_p_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
test ebp, ebp
je 0x10026f27
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor esi, esi
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
push ebx
push ebp
push edi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10026c0a
add esi, dword [esp + 0x1c]
cmp esi, ebx
jae 0x10026c2c
mov edx, ebx
lea ecx, [esp + 0x1c]
push 0
sub edx, esi
push ecx
lea eax, [esi + ebp]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10026bdf
mov eax, dword [0x1030aa70]
test eax, eax
je 0x10026c2c
push str.CSMTPHandler::DecodeCacheMail_ReadFail____
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1030aa70]
test eax, eax
je 0x10026c56
push esi
push str.CSMTPHandler::DecodeCacheMail_4__dwReadAll:_d_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
cmp esi, ebx
jne 0x10026e6d
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push ebp
mov ecx, 0x103079c0
mov dword [esp + 0x20], 0
call fcn.10068c70
mov esi, eax
mov eax, dword [0x1030aa70]
test eax, eax
je 0x10026cab
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push esi
push str.CSMTPHandler::DecodeCacheMail_5_1__Decode:_d__bufOutput:_p__nBufOutputLen:_d_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x1c
test esi, esi
je 0x10026e6d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10026e6d
cmp eax, 5
jle 0x10026d6b
push str._r_n._r_n
call fcn.10076fb2
add esp, 4
push eax
push str._r_n._r_n
call fcn.10076fb2
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add ecx, edx
add esp, 4
sub ecx, eax
push ecx
lea ecx, [esp + 0x24]
call fcn.1008e740
mov edx, dword [esp + 0x1c]
push str._r_n._r_n
push edx
mov dword [esp + 0x3c], 1
call fcn.10077005
add esp, 8
test eax, eax
jne 0x10026d2e
push str._r_n._r_n
call fcn.10076fb2
mov ecx, dword [esp + 0x14]
add esp, 4
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [0x1030aa70]
test eax, eax
je 0x10026d5a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push str.CSMTPHandler::DecodeCacheMail_5_2__nBufOutputLen:_d__End:_s_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.1008ec90
mov esi, dword [esp + 0x18]
push 0
push 0
push 2
mov eax, dword [esi + 0x1bc]
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [0x1030aa70]
test eax, eax
je 0x10026db7
mov edx, dword [esi + 0x1bc]
push edx
push ebx
push str.CSMTPHandler::DecodeCacheMail_6__hFile:_p__CacheMail:_s_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
cmp ebx, 0xffffffff
je 0x10026e6d
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
lea eax, [esp + 0x20]
push edi
push eax
push ecx
push edx
push ebx
xor esi, esi
mov dword [esp + 0x34], edi
call ebp
test eax, eax
je 0x10026e0f
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add esi, edx
cmp esi, eax
jge 0x10026e30
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push edi
sub eax, esi
push ecx
push eax
lea eax, [esi + edx]
mov dword [esp + 0x2c], edi
push eax
push ebx
call ebp
test eax, eax
jne 0x10026de5
cmp dword [0x1030aa70], edi
je 0x10026e30
push str.CSMTPHandler::DecodeCacheMail_WriteFail____
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1030aa70], edi
je 0x10026e59
push esi
push str.CSMTPHandler::DecodeCacheMail_7__dwWriteAll:_d_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
cmp esi, dword [esp + 0x10]
jne 0x10026e6d
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x30c], 1
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
pop ebx
je 0x10026e92
lea ecx, [esp + 0xc]
push ecx
mov ecx, 0x103079c0
call fcn.10068d30
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10026edc
mov eax, dword [edi + 0x30c]
test eax, eax
jne 0x10026edc
mov eax, dword [edi + 0x1bc]
mov ecx, dword [edi + 0x1c0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [0x1030aa70]
test ecx, ecx
je 0x10026edc
push eax
push str.CSMTPHandler::DecodeCacheMail_Restore___d_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
mov eax, dword [edi + 0x30c]
pop edi
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
cmp dword [0x1030aa70], ebp
je 0x10026e71
mov edx, dword [esi]
mov eax, dword [edi + 0x1bc]
push edx
push eax
push str.CSMTPHandler::DecodeCacheMail_MoveFile_Fail_____s___s_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
jmp 0x10026e71
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10026e71
mov ecx, dword [esp + 0x24]
pop edi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret