Function at 0x426d6e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0xf18]
push ebx
mov ebx, ecx
sub esp, 0xf24
mov eax, dword [ecx]
mov dword [ecx + 0xec], 0
push 0x448444
push dword [eax + 0x58]
call fcn.00405368
add esp, 0x10
test eax, eax
jne 0x426dce
push eax
push eax
lea eax, [ebx + 4]
push dword [0x43d1ec]
push eax
call fcn.0042ca58
push dword [ebx + 0xe0]
push edi
push str.Cant_open__s____s_
push 0x4634a0
call fcn.0040423a
add esp, 0x20
jmp 0x426e34
sub esp, 0xc
push eax
call fcn.004124a3
mov dword [ebx + 0xdc], eax
mov dword [esp], eax
push dword [ebx + 0xe0]
push dword [ebx + 0x14]
push str._smbox_.128s_8.8X.msg
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push edi
call fcn.0040357d
mov edx, eax
pop ecx
pop eax
test edx, edx
js 0x426da2
mov dword [ebp - 0xf1c], edx
push ecx
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
pop eax
pop edx
test edi, edi
mov edx, dword [ebp - 0xf1c]
jne 0x426e3b
sub esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
xor eax, eax
jmp 0x42745a
sub esp, 0xc
lea eax, [edi + 0x1e]
mov dword [ebp - 0xf1c], edx
push eax
call fcn.0042d128
mov edx, dword [ebp - 0xf1c]
add esp, 0xc
mov dword [ebx + 0xf0], eax
push edi
push eax
push edx
call fcn.00403603
mov edx, dword [ebp - 0xf1c]
mov edi, eax
mov eax, dword [ebx + 0xf0]
mov dword [eax + edi], 0
push eax
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
test edi, edi
jg 0x426eb6
mov edx, dword [ebx + 0xf0]
xor eax, eax
test edx, edx
je 0x42745a
sub esp, 0xc
mov dword [ebp - 0xf1c], eax
push edx
call fcn.0042d10c
mov eax, dword [ebp - 0xf1c]
add esp, 0x10
jmp 0x42745a
push eax
push eax
push str._nFrom:
push dword [ebx + 0xf0]
call fcn.004034dd
add esp, 0x10
mov edx, 0x44821f
test eax, eax
je 0x426ed7
lea edx, [eax + 7]
mov dword [ebx + 0xf4], edx
push eax
push eax
push str._nTo:
push dword [ebx + 0xf0]
call fcn.004034dd
add esp, 0x10
mov edx, 0x44821f
test eax, eax
je 0x426efe
lea edx, [eax + 5]
mov dword [ebx + 0xf8], edx
push eax
push eax
push str._nDate:
push dword [ebx + 0xf0]
call fcn.004034dd
add esp, 0x10
mov edx, 0x44821f
test eax, eax
je 0x426f25
lea edx, [eax + 7]
mov dword [ebx + 0x100], edx
push eax
push eax
push str._nSubject:
push dword [ebx + 0xf0]
call fcn.004034dd
add esp, 0x10
mov edx, 0x44821f
test eax, eax
je 0x426f4c
lea edx, [eax + 0xa]
mov dword [ebx + 0x104], edx
push edi
push edi
push str.boundary
push dword [ebx + 0xf0]
call fcn.004034dd
add esp, 0x10
mov dword [ebx + 0xe4], eax
test eax, eax
je 0x42710e
lea edx, [eax + 9]
mov dword [ebx + 0xe4], edx
cmp byte [eax + 9], 0x22
jne 0x426f8d
add eax, 0xa
mov dword [ebx + 0xe4], eax
push ecx
push ecx
push 0x448464
push dword [ebx + 0xe4]
call fcn.00403442
add esp, 0x10
test eax, eax
je 0x426fac
mov byte [eax], 0
inc eax
jmp 0x426fb8
mov edx, dword [str.Bad_mime_format]
mov dword [ebx + 0xe8], edx
push edx
push edx
push dword [ebx + 0xe4]
push eax
call fcn.004034b9
add esp, 0x10
mov dword [ebx + 0xe8], eax
mov edi, eax
test eax, eax
jne 0x426fe4
mov dword [ebx + 0xe8], 0x448212
jmp 0x427227
push eax
push eax
push 0x448468
push edi
call fcn.004034b9
add esp, 0x10
test eax, eax
je 0x427000
mov byte [eax], 0
add eax, 4
jmp 0x427029
push edi
push edi
push 0x44846d
push dword [ebx + 0xe8]
call fcn.004034b9
add esp, 0x10
mov dword [ebp - 0xf1c], 0x44821f
test eax, eax
je 0x42702f
mov byte [eax], 0
add eax, 2
mov dword [ebp - 0xf1c], eax
push esi
push esi
push str._attachment
push dword [ebx + 0xe8]
call fcn.004034b9
add esp, 0x10
test eax, eax
jne 0x42706d
push ecx
push ecx
push str.text_html
push dword [ebx + 0xe8]
call fcn.004034b9
add esp, 0x10
test eax, eax
je 0x427077
mov dword [ebx + 0x118], 2
jmp 0x427077
mov dword [ebp - 0xf1c], 0x44821f
push edi
push edi
push str.quoted_printable
push dword [ebx + 0xe8]
call fcn.004034dd
mov edi, eax
pop eax
pop edx
push str.charsetkoi8_r
push dword [ebx + 0xe8]
test edi, edi
cmovne edi, dword [ebp - 0xf1c]
call fcn.004034dd
add esp, 0x10
mov esi, eax
test eax, eax
jne 0x4270c6
push esi
push esi
push str.charset_koi8_r_
push dword [ebx + 0xe8]
call fcn.004034dd
add esp, 0x10
mov esi, eax
push eax
push eax
push str.base64
push dword [ebx + 0xe8]
call fcn.004034dd
mov dword [ebp - 0xf20], eax
mov eax, dword [ebp - 0xf1c]
mov dword [ebx + 0xe8], eax
pop edx
pop ecx
push dword [ebx + 0xe4]
push eax
call fcn.004034b9
add esp, 0x10
test eax, eax
je 0x427103
mov byte [eax], 0
inc eax
mov dword [ebx + 0xec], eax
jmp 0x4271fc
push esi
push esi
push 0x448468
push dword [ebx + 0xf0]
call fcn.004034b9
add esp, 0x10
mov dword [ebx + 0xe8], eax
test eax, eax
je 0x427139
mov byte [eax], 0
add dword [ebx + 0xe8], 4
jmp 0x42716e
push ecx
push ecx
push 0x44846d
push dword [ebx + 0xf0]
call fcn.004034b9
add esp, 0x10
mov dword [ebx + 0xe8], eax
test eax, eax
je 0x427164
mov byte [eax], 0
add dword [ebx + 0xe8], 2
jmp 0x42716e
mov dword [ebx + 0xe8], 0x44821f
push eax
push eax
push str.base64
push dword [ebx + 0xf0]
call fcn.004034dd
mov dword [ebp - 0xf20], eax
pop eax
pop edx
push str.text_html
push dword [ebx + 0xf0]
call fcn.004034b9
add esp, 0x10
test eax, eax
je 0x4271a9
mov dword [ebx + 0x118], 2
push edi
push edi
push str.:_quoted_printable
push dword [ebx + 0xf0]
call fcn.004034dd
add esp, 0x10
mov edi, eax
test eax, eax
je 0x4271ca
mov edi, dword [ebx + 0xe8]
push esi
push esi
push str.charsetkoi8_r
push dword [ebx + 0xf0]
call fcn.004034dd
add esp, 0x10
mov esi, eax
test eax, eax
jne 0x4271fc
push ecx
push ecx
push str.charset_koi8_r_
push dword [ebx + 0xf0]
call fcn.004034dd
add esp, 0x10
mov esi, eax
cmp dword [ebp - 0xf20], 0
je 0x427217
mov eax, dword [ebx + 0xe8]
push edx
push edx
push eax
push eax
call fcn.00426459
add esp, 0x10
test edi, edi
je 0x427227
push eax
push eax
push edi
push edi
call fcn.004263fc
add esp, 0x10
push eax
push eax
push 0xa
push dword [ebx + 0xf4]
call fcn.004033de
add esp, 0x10
test eax, eax
je 0x427254
mov byte [eax], 0
mov edx, dword [ebx + 0xf4]
sub eax, edx
cmp eax, 0x40
jle 0x427254
mov dword [edx + 0x3e], 0x2e2e
push edi
push edi
push 0xa
push dword [ebx + 0xf8]
call fcn.004033de
add esp, 0x10
test eax, eax
je 0x427281
mov byte [eax], 0
mov edx, dword [ebx + 0xf8]
sub eax, edx
cmp eax, 0x40
jle 0x427281
mov dword [edx + 0x3e], 0x2e2e
push ecx
push ecx
push 0xa
push dword [ebx + 0x100]
call fcn.004033de
add esp, 0x10
test eax, eax
je 0x4272ae
mov byte [eax], 0
mov edx, dword [ebx + 0x100]
sub eax, edx
cmp eax, 0x40
jle 0x4272ae
mov dword [edx + 0x3e], 0x2e2e
push edx
push edx
push 0xa
push dword [ebx + 0x104]
call fcn.004033de
add esp, 0x10
test eax, eax
je 0x4272db
mov byte [eax], 0
mov edx, dword [ebx + 0x104]
sub eax, edx
cmp eax, 0x40
jle 0x4272db
mov dword [edx + 0x3e], 0x2e2e
push eax
push eax
push 0x3c
push dword [ebx + 0xf4]
call fcn.004033de
add esp, 0x10
test eax, eax
je 0x427318
lea edx, [eax + 1]
mov dword [ebx + 0x108], edx
mov byte [eax], 0
push eax
push eax
push 0x3e
push dword [ebx + 0x108]
call fcn.004033de
add esp, 0x10
test eax, eax
je 0x42732e
mov byte [eax], 0
jmp 0x42732e
mov eax, dword [ebx + 0xf4]
mov dword [ebx + 0xf4], 0x448212
mov dword [ebx + 0x108], eax
push eax
push eax
push 0x3c
push dword [ebx + 0xf8]
call fcn.004033de
add esp, 0x10
test eax, eax
je 0x42736b
lea edx, [eax + 1]
mov dword [ebx + 0xfc], edx
mov byte [eax], 0
push eax
push eax
push 0x3e
push dword [ebx + 0xfc]
call fcn.004033de
add esp, 0x10
test eax, eax
je 0x427381
mov byte [eax], 0
jmp 0x427381
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0xf8], 0x448212
mov dword [ebx + 0xfc], eax
sub esp, 0xc
push dword [ebx + 0xf8]
call fcn.00426531
pop edi
push dword [ebx + 0xf4]
call fcn.00426531
pop eax
push dword [ebx + 0x104]
call fcn.00426531
mov eax, dword [ebx + 0xf8]
add esp, 0x10
push ecx
push ecx
push 0x4484d1
push eax
call fcn.00403442
add esp, 0x10
test eax, eax
je 0x4273c9
mov byte [eax], 0x20
jmp 0x4273b0
mov eax, dword [ebx + 0xf4]
push edx
push edx
push 0x4484d1
push eax
call fcn.00403442
add esp, 0x10
test eax, eax
je 0x4273e8
mov byte [eax], 0x20
jmp 0x4273cf
mov eax, dword [ebx + 0x100]
push edi
push edi
push 0x4484d1
push eax
call fcn.00403442
add esp, 0x10
test eax, eax
je 0x427407
mov byte [eax], 0x20
jmp 0x4273ee
mov eax, dword [ebx + 0x104]
push ecx
push ecx
push 0x4484d1
push eax
call fcn.00403442
add esp, 0x10
test eax, eax
je 0x427426
mov byte [eax], 0x20
jmp 0x42740d
test esi, esi
jne 0x427431
mov eax, 1
jmp 0x42745a
mov ebx, dword [ebx + 0xe8]
movsx eax, byte [ebx]
test al, al
je 0x42742a
push edx
push edx
push eax
push 0x439060
call fcn.004033de
add esp, 0x10
test eax, eax
je 0x427457
mov al, byte [eax + 0x43]
mov byte [ebx], al
inc ebx
jmp 0x427437
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret