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

Disassembly:
push 0xffffffffffffffff
push 0x1025ca30
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 0x100272e7
cmp dword [edi + 0x30c], ebp
jne 0x100272e7
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.10055f20
lea esi, [edi + 0x1c0]
push eax
mov ecx, esi
mov dword [esp + 0x38], ebp
call fcn.10090d80
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.10090bf0
mov eax, dword [esi]
mov ecx, dword [edi + 0x1bc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x100272a3
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 [0x1030ceb0]
cmp eax, ebp
mov dword [esp + 0x20], esi
je 0x10026eb5
push esi
push str.CSMTPHandler::DecodeCacheMail_1__hFile:_p_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
cmp esi, 0xffffffff
je 0x10027221
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 [0x1030ceb0]
cmp eax, ebp
je 0x10026ef8
mov edx, dword [esp + 0x24]
push edx
push ebx
push str.CSMTPHandler::DecodeCacheMail_2__FileSizeL:_d__FileSizeH:_d_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x10026f0a
cmp ebx, ebp
je 0x100272db
jmp 0x10026f10
ja 0x100272db
cmp ebx, 0x40
jb 0x100272db
cmp ebx, 0x6400000
ja 0x100272db
lea esi, [ebx + 1]
push esi
call fcn.1024cbd1
mov ebp, eax
mov eax, dword [0x1030ceb0]
add esp, 4
test eax, eax
je 0x10026f56
push ebp
push str.CSMTPHandler::DecodeCacheMail_3__bufInput:_p_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
test ebp, ebp
je 0x100272d7
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 0x10026fba
add esi, dword [esp + 0x1c]
cmp esi, ebx
jae 0x10026fdc
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 0x10026f8f
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x10026fdc
push str.CSMTPHandler::DecodeCacheMail_ReadFail____
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x10027006
push esi
push str.CSMTPHandler::DecodeCacheMail_4__dwReadAll:_d_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
cmp esi, ebx
jne 0x1002721d
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push ebp
mov ecx, 0x10309e00
mov dword [esp + 0x20], 0
call fcn.1006abd0
mov esi, eax
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1002705b
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 0x1030c61c
call fcn.100a65e0
add esp, 0x1c
test esi, esi
je 0x1002721d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002721d
cmp eax, 5
jle 0x1002711b
push str._r_n._r_n
call fcn.10078f12
add esp, 4
push eax
push str._r_n._r_n
call fcn.10078f12
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add edx, ecx
add esp, 4
sub edx, eax
lea ecx, [esp + 0x20]
push edx
call fcn.100906a0
mov edx, dword [esp + 0x1c]
push str._r_n._r_n
push edx
mov dword [esp + 0x3c], 1
call fcn.10078f65
add esp, 8
test eax, eax
jne 0x100270de
push str._r_n._r_n
call fcn.10078f12
mov ecx, dword [esp + 0x14]
add esp, 4
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1002710a
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 0x1030c61c
call fcn.100a65e0
add esp, 0x18
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.10090bf0
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 [0x1030ceb0]
test eax, eax
je 0x10027167
mov edx, dword [esi + 0x1bc]
push edx
push ebx
push str.CSMTPHandler::DecodeCacheMail_6__hFile:_p__CacheMail:_s_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
cmp ebx, 0xffffffff
je 0x1002721d
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 0x100271bf
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add esi, edx
cmp esi, eax
jge 0x100271e0
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 0x10027195
cmp dword [0x1030ceb0], edi
je 0x100271e0
push str.CSMTPHandler::DecodeCacheMail_WriteFail____
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1030ceb0], edi
je 0x10027209
push esi
push str.CSMTPHandler::DecodeCacheMail_7__dwWriteAll:_d_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
cmp esi, dword [esp + 0x10]
jne 0x1002721d
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 0x10027242
lea ecx, [esp + 0xc]
push ecx
mov ecx, 0x10309e00
call fcn.1006ac90
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1002728c
mov eax, dword [edi + 0x30c]
test eax, eax
jne 0x1002728c
mov eax, dword [edi + 0x1bc]
mov ecx, dword [edi + 0x1c0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [0x1030ceb0]
test ecx, ecx
je 0x1002728c
push eax
push str.CSMTPHandler::DecodeCacheMail_Restore___d_
push str.SmtpMail
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
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 [0x1030ceb0], ebp
je 0x10027221
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 0x1030c61c
call fcn.100a65e0
add esp, 0x18
jmp 0x10027221
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10027221
mov ecx, dword [esp + 0x24]
pop edi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret