Function at 0x426f0e
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 0x449484
push dword [eax + 0x58]
call fcn.00405368
add esp, 0x10
test eax, eax
jne 0x426f6e
push eax
push eax
lea eax, [ebx + 4]
push dword [0x43d32c]
push eax
call fcn.0042ce14
push dword [ebx + 0xe0]
push edi
push str.Cant_open__s____s_
push 0x4644a0
call fcn.0040423a
add esp, 0x20
jmp 0x426fd4
sub esp, 0xc
push eax
call fcn.00412537
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 0x426f42
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 0x426fdb
sub esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
xor eax, eax
jmp 0x4275fa
sub esp, 0xc
lea eax, [edi + 0x1e]
mov dword [ebp - 0xf1c], edx
push eax
call fcn.0042d4e4
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 0x427056
mov edx, dword [ebx + 0xf0]
xor eax, eax
test edx, edx
je 0x4275fa
sub esp, 0xc
mov dword [ebp - 0xf1c], eax
push edx
call fcn.0042d4c8
mov eax, dword [ebp - 0xf1c]
add esp, 0x10
jmp 0x4275fa
push eax
push eax
push str._nFrom:
push dword [ebx + 0xf0]
call fcn.004034dd
add esp, 0x10
mov edx, 0x44925f
test eax, eax
je 0x427077
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, 0x44925f
test eax, eax
je 0x42709e
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, 0x44925f
test eax, eax
je 0x4270c5
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, 0x44925f
test eax, eax
je 0x4270ec
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 0x4272ae
lea edx, [eax + 9]
mov dword [ebx + 0xe4], edx
cmp byte [eax + 9], 0x22
jne 0x42712d
add eax, 0xa
mov dword [ebx + 0xe4], eax
push ecx
push ecx
push 0x4494a4
push dword [ebx + 0xe4]
call fcn.00403442
add esp, 0x10
test eax, eax
je 0x42714c
mov byte [eax], 0
inc eax
jmp 0x427158
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 0x427184
mov dword [ebx + 0xe8], 0x449252
jmp 0x4273c7
push eax
push eax
push 0x4494a8
push edi
call fcn.004034b9
add esp, 0x10
test eax, eax
je 0x4271a0
mov byte [eax], 0
add eax, 4
jmp 0x4271c9
push edi
push edi
push 0x4494ad
push dword [ebx + 0xe8]
call fcn.004034b9
add esp, 0x10
mov dword [ebp - 0xf1c], 0x44925f
test eax, eax
je 0x4271cf
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 0x42720d
push ecx
push ecx
push str.text_html
push dword [ebx + 0xe8]
call fcn.004034b9
add esp, 0x10
test eax, eax
je 0x427217
mov dword [ebx + 0x118], 2
jmp 0x427217
mov dword [ebp - 0xf1c], 0x44925f
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 0x427266
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 0x4272a3
mov byte [eax], 0
inc eax
mov dword [ebx + 0xec], eax
jmp 0x42739c
push esi
push esi
push 0x4494a8
push dword [ebx + 0xf0]
call fcn.004034b9
add esp, 0x10
mov dword [ebx + 0xe8], eax
test eax, eax
je 0x4272d9
mov byte [eax], 0
add dword [ebx + 0xe8], 4
jmp 0x42730e
push ecx
push ecx
push 0x4494ad
push dword [ebx + 0xf0]
call fcn.004034b9
add esp, 0x10
mov dword [ebx + 0xe8], eax
test eax, eax
je 0x427304
mov byte [eax], 0
add dword [ebx + 0xe8], 2
jmp 0x42730e
mov dword [ebx + 0xe8], 0x44925f
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 0x427349
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 0x42736a
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 0x42739c
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 0x4273b7
mov eax, dword [ebx + 0xe8]
push edx
push edx
push eax
push eax
call fcn.004265f9
add esp, 0x10
test edi, edi
je 0x4273c7
push eax
push eax
push edi
push edi
call fcn.0042659c
add esp, 0x10
push eax
push eax
push 0xa
push dword [ebx + 0xf4]
call fcn.004033de
add esp, 0x10
test eax, eax
je 0x4273f4
mov byte [eax], 0
mov edx, dword [ebx + 0xf4]
sub eax, edx
cmp eax, 0x40
jle 0x4273f4
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 0x427421
mov byte [eax], 0
mov edx, dword [ebx + 0xf8]
sub eax, edx
cmp eax, 0x40
jle 0x427421
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 0x42744e
mov byte [eax], 0
mov edx, dword [ebx + 0x100]
sub eax, edx
cmp eax, 0x40
jle 0x42744e
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 0x42747b
mov byte [eax], 0
mov edx, dword [ebx + 0x104]
sub eax, edx
cmp eax, 0x40
jle 0x42747b
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 0x4274b8
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 0x4274ce
mov byte [eax], 0
jmp 0x4274ce
mov eax, dword [ebx + 0xf4]
mov dword [ebx + 0xf4], 0x449252
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 0x42750b
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 0x427521
mov byte [eax], 0
jmp 0x427521
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0xf8], 0x449252
mov dword [ebx + 0xfc], eax
sub esp, 0xc
push dword [ebx + 0xf8]
call fcn.004266d1
pop edi
push dword [ebx + 0xf4]
call fcn.004266d1
pop eax
push dword [ebx + 0x104]
call fcn.004266d1
mov eax, dword [ebx + 0xf8]
add esp, 0x10
push ecx
push ecx
push 0x449511
push eax
call fcn.00403442
add esp, 0x10
test eax, eax
je 0x427569
mov byte [eax], 0x20
jmp 0x427550
mov eax, dword [ebx + 0xf4]
push edx
push edx
push 0x449511
push eax
call fcn.00403442
add esp, 0x10
test eax, eax
je 0x427588
mov byte [eax], 0x20
jmp 0x42756f
mov eax, dword [ebx + 0x100]
push edi
push edi
push 0x449511
push eax
call fcn.00403442
add esp, 0x10
test eax, eax
je 0x4275a7
mov byte [eax], 0x20
jmp 0x42758e
mov eax, dword [ebx + 0x104]
push ecx
push ecx
push 0x449511
push eax
call fcn.00403442
add esp, 0x10
test eax, eax
je 0x4275c6
mov byte [eax], 0x20
jmp 0x4275ad
test esi, esi
jne 0x4275d1
mov eax, 1
jmp 0x4275fa
mov ebx, dword [ebx + 0xe8]
movsx eax, byte [ebx]
test al, al
je 0x4275ca
push edx
push edx
push eax
push 0x4391a0
call fcn.004033de
add esp, 0x10
test eax, eax
je 0x4275f7
mov al, byte [eax + 0x43]
mov byte [ebx], al
inc ebx
jmp 0x4275d7
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret