Function at 0x1004fb80
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10250c6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [ecx + 0x1c]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x74], ecx
jne 0x1004fbb1
xor eax, eax
jmp 0x10050757
lea eax, [esp + 0x10]
push eax
call fcn.1004c7e0
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10083560
cmp esi, 0xffffffff
je 0x1004fcfe
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [0x102f7658]
test eax, eax
je 0x1004fc18
push ebx
push str.ReadMailInfo_file_size:_lu_B
push str.MailInfo
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
cmp ebx, 0xffffffff
je 0x1004fd4e
test ebx, ebx
je 0x1004fd4e
mov eax, ebx
shr eax, 1
inc eax
lea ecx, [eax + eax]
push ecx
call fcn.1023d8fc
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1004fd2c
lea ecx, [ebx + 2]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x102f7658]
test ecx, ecx
je 0x1004fc9a
mov ecx, dword [esp + 0x14]
push ecx
push eax
push str.ReadMailInfo_after_read_file__bRead__d___dwRead__lu_
push str.MailInfo
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
call fcn.100af850
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa8], 0
call fcn.100b05b0
push ebp
call fcn.1023d925
add esp, 4
lea ecx, [esp + 0x18]
call fcn.100b0ca0
push str.MailInfo
lea ecx, [esp + 0x1c]
call fcn.100b07c0
test eax, eax
jne 0x1004fd5c
lea ecx, [esp + 0x18]
mov dword [esp + 0xa4], 0xffffffff
call fcn.100af8e0
xor eax, eax
jmp 0x10050757
mov eax, dword [0x102f7658]
test eax, eax
je 0x1004fd55
push str.MailInfo.dat
push str.ReadMailInfo_read_file__s__fail
push str.MailInfo
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
xor eax, eax
jmp 0x10050757
mov eax, dword [0x102f7658]
test eax, eax
je 0x1004fd4e
push str.ReadMailInfo_new_memory_fail
push str.MailInfo
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10050757
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.GUID
lea ecx, [esp + 0x1c]
call fcn.100b0900
mov ebx, dword [esp + 0xac]
test eax, eax
je 0x1004fdb4
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.100b0e00
mov eax, dword [eax]
lea ecx, [ebx + 8]
push ecx
push eax
mov byte [esp + 0xac], 1
call fcn.1009d8e0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.ProcID
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x1004fe00
lea esi, [ebx + 0x18]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
mov dword [esi], 0
call fcn.100b0e00
mov eax, dword [eax]
push esi
push 0x102a3f8c
push eax
call fcn.1006b95b
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.ProcBit
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x1004fe4c
lea esi, [ebx + 0x1c]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
mov dword [esi], 0
call fcn.100b0e00
mov eax, dword [eax]
push esi
push 0x102a3f8c
push eax
call fcn.1006b95b
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.Direction
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x1004fe98
lea ecx, [esp + 0x10]
lea esi, [ebx + 0x20]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esi], 0
call fcn.100b0e00
mov eax, dword [eax]
push esi
push 0x102a3f8c
push eax
call fcn.1006b95b
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.MailSize
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x1004feeb
lea edi, [ebx + 0x28]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.100b0e00
mov eax, dword [eax]
push edi
push str._I64u
push eax
call fcn.1006b95b
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.From
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x1004ff36
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.100b0e00
push eax
lea ecx, [ebx + 0x30]
mov byte [esp + 0xa8], 2
call fcn.100836f0
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push 0x102b7bf8
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x1004ff81
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.100b0e00
push eax
lea ecx, [ebx + 0x34]
mov byte [esp + 0xa8], 3
call fcn.100836f0
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push 0x102b7bf0
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x1004ffcc
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.100b0e00
push eax
lea ecx, [ebx + 0x38]
mov byte [esp + 0xa8], 4
call fcn.100836f0
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.Bccs
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x10050017
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.100b0e00
push eax
lea ecx, [ebx + 0x3c]
mov byte [esp + 0xa8], 5
call fcn.100836f0
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push 0x102a8224
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x10050062
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.100b0e00
push eax
lea ecx, [ebx + 0x40]
mov byte [esp + 0xa8], 6
call fcn.100836f0
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.HasText
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x100500d7
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
mov dword [esp + 0x18], 0
call fcn.100b0e00
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0x102a4190
push eax
call fcn.1006b95b
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10083560
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100500d7
mov esi, dword [esp + 0x74]
lea edx, [ebx + 0x44]
push 1
push edx
mov ecx, esi
call fcn.100507b0
lea eax, [ebx + 0x48]
push 0
push eax
mov ecx, esi
call fcn.100507b0
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.Attach
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x1005072a
lea ecx, [esp + 0x18]
xor edi, edi
call fcn.100b0c00
mov eax, dword [0x1025e6e4]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
push 0x102e269c
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 0xa
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call fcn.100837e0
push 0x102e269c
lea ecx, [esp + 0x68]
call fcn.100837e0
push 0x102e269c
lea ecx, [esp + 0x6c]
call fcn.100837e0
push 0x102e269c
lea ecx, [esp + 0x70]
call fcn.100837e0
lea ecx, [esp + 0x18]
mov byte [esp + 0xa4], 0xb
call fcn.100b0c70
push 0x102b7bbc
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x100501b9
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], edi
push ecx
lea ecx, [esp + 0x1c]
call fcn.100b0e00
mov eax, dword [eax]
lea edx, [esp + 0x4c]
push edx
push 0x102a3f8c
push eax
call fcn.1006b95b
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.Size
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x1005020e
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call fcn.100b0e00
mov eax, dword [eax]
lea ecx, [esp + 0x54]
push ecx
push str._I64u
push eax
call fcn.1006b95b
add esp, 0xc
lea ecx, [esp + 0x8c]
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.Status
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x10050259
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x18]
push edx
mov dword [esp + 0x60], edi
call fcn.100b0e00
mov eax, dword [eax]
lea ecx, [esp + 0x5c]
push ecx
push 0x102a3f8c
push eax
call fcn.1006b95b
add esp, 0xc
lea ecx, [esp + 0x7c]
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.Name
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x100502ab
lea edx, [esp + 0x94]
lea ecx, [esp + 0x18]
push edx
call fcn.100b0e00
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 0xc
call fcn.100836f0
lea ecx, [esp + 0x94]
mov byte [esp + 0xa4], 0xb
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.Cache
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x100502fd
lea eax, [esp + 0x90]
lea ecx, [esp + 0x18]
push eax
call fcn.100b0e00
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0xa8], 0xd
call fcn.100836f0
lea ecx, [esp + 0x90]
mov byte [esp + 0xa4], 0xb
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.DecryptPath
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x10050349
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x1c]
call fcn.100b0e00
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xa8], 0xe
call fcn.100836f0
lea ecx, [esp + 0x78]
mov byte [esp + 0xa4], 0xb
call fcn.10083560
lea ecx, [esp + 0x18]
call fcn.100b0c70
push str.DocWatermarkPath
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
je 0x1005039b
lea edx, [esp + 0x84]
lea ecx, [esp + 0x18]
push edx
call fcn.100b0e00
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0xa8], 0xf
call fcn.100836f0
lea ecx, [esp + 0x84]
mov byte [esp + 0xa4], 0xb
call fcn.10083560
mov eax, dword [ebx + 0x50]
mov ebp, eax
mov dword [esp + 0x80], ebp
inc ebp
cmp ebp, edi
jne 0x1005042b
mov esi, dword [ebx + 0x4c]
cmp esi, edi
je 0x10050420
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x14], esi
je 0x1005040b
lea edi, [eax + 1]
lea ecx, [esi + 0x20]
mov byte [esp + 0xa4], 0x12
call fcn.10083560
lea ecx, [esi + 0x1c]
mov byte [esp + 0xa4], 0x11
call fcn.10083560
lea ecx, [esi + 0x18]
mov byte [esp + 0xa4], 0x10
call fcn.10083560
lea ecx, [esi + 0x14]
mov byte [esp + 0xa4], 0xb
call fcn.10083560
add esi, 0x28
dec edi
mov dword [esp + 0x14], esi
jne 0x100503c1
mov eax, dword [ebx + 0x4c]
push eax
call fcn.1023d925
add esp, 4
mov dword [ebx + 0x4c], 0
xor edi, edi
mov dword [ebx + 0x54], edi
mov dword [ebx + 0x50], edi
jmp 0x10050668
mov ecx, dword [ebx + 0x4c]
cmp ecx, edi
jne 0x10050496
lea edi, [ebp + ebp*4]
shl edi, 3
push edi
call fcn.1023d8fc
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebx + 0x4c], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x14], esi
rep stosb byte es:[edi], al
lea edi, [ebp]
mov dword [esp + 0x48], esi
test esi, esi
mov byte [esp + 0xa4], 0x13
je 0x10050479
mov ecx, esi
call fcn.1004bcd0
add esi, 0x28
dec edi
mov byte [esp + 0xa4], 0xb
mov dword [esp + 0x14], esi
jne 0x10050462
mov dword [ebx + 0x54], ebp
mov dword [ebx + 0x50], ebp
jmp 0x10050668
mov esi, dword [ebx + 0x54]
cmp ebp, esi
jg 0x10050577
cmp eax, ebp
jge 0x1005050c
mov edx, ebp
sub edx, eax
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
lea ecx, [edx + edx*4]
shl ecx, 3
mov esi, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x14], edi
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, edx
dec edx
test ecx, ecx
je 0x1005056f
mov esi, dword [esp + 0x14]
lea edi, [edx + 1]
mov dword [esp + 0x48], esi
test esi, esi
mov byte [esp + 0xa4], 0x14
je 0x100504f2
mov ecx, esi
call fcn.1004bcd0
add esi, 0x28
dec edi
mov byte [esp + 0xa4], 0xb
mov dword [esp + 0x14], esi
jne 0x100504db
mov dword [ebx + 0x50], ebp
jmp 0x10050668
jle 0x1005056f
lea edx, [ebp + ebp*4]
sub eax, ebp
lea esi, [ecx + edx*8]
mov ecx, eax
dec eax
mov dword [esp + 0x14], esi
test ecx, ecx
je 0x1005056f
lea edi, [eax + 1]
lea ecx, [esi + 0x20]
mov byte [esp + 0xa4], 0x17
call fcn.10083560
lea ecx, [esi + 0x1c]
mov byte [esp + 0xa4], 0x16
call fcn.10083560
lea ecx, [esi + 0x18]
mov byte [esp + 0xa4], 0x15
call fcn.10083560
lea ecx, [esi + 0x14]
mov byte [esp + 0xa4], 0xb
call fcn.10083560
add esi, 0x28
dec edi
mov dword [esp + 0x14], esi
jne 0x10050525
mov dword [ebx + 0x50], ebp
jmp 0x10050668
mov ecx, dword [ebx + 0x58]
cmp ecx, edi
jne 0x100505a2
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x10050595
mov ecx, 4
jmp 0x100505a2
cmp ecx, 0x400
jle 0x100505a2
mov ecx, 0x400
lea eax, [ecx + esi]
cmp ebp, eax
jl 0x100505ab
mov eax, ebp
lea edx, [eax + eax*4]
mov dword [esp + 0x14], eax
shl edx, 3
push edx
call fcn.1023d8fc
mov ecx, dword [ebx + 0x50]
mov esi, dword [ebx + 0x4c]
mov edi, eax
mov dword [esp + 0x4c], eax
lea ecx, [ecx + ecx*4]
add esp, 4
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebx + 0x50]
sub edx, ebx
lea ecx, [ebx + ebx*4]
lea esi, [eax + ecx*8]
lea ecx, [edx + edx*4]
shl ecx, 3
mov ebx, ecx
xor eax, eax
mov edi, esi
mov dword [esp + 0x88], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x10050644
lea edi, [edx + 1]
mov bl, 0x18
mov dword [esp + 0x98], esi
test esi, esi
mov byte [esp + 0xa4], bl
je 0x1005062f
mov ecx, esi
call fcn.1004bcd0
add esi, 0x28
dec edi
mov byte [esp + 0xa4], 0xb
mov dword [esp + 0x88], esi
jne 0x10050616
mov ebx, dword [esp + 0xac]
mov eax, dword [ebx + 0x4c]
push eax
call fcn.1023d925
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [ebx + 0x4c], ecx
mov dword [ebx + 0x50], ebp
mov dword [ebx + 0x54], edx
mov eax, dword [esp + 0x80]
mov ecx, dword [ebx + 0x4c]
mov edx, dword [esp + 0x4c]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov dword [esi], edx
mov eax, dword [esp + 0x54]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x58]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x60]
lea ecx, [esi + 0x14]
push eax
mov dword [esi + 0x10], edx
call fcn.100836f0
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esi + 0x18]
call fcn.100836f0
lea edx, [esp + 0x68]
lea ecx, [esi + 0x1c]
push edx
call fcn.100836f0
lea eax, [esp + 0x6c]
lea ecx, [esi + 0x20]
push eax
call fcn.100836f0
lea ecx, [esp + 0x18]
call fcn.100b0c30
lea ecx, [esp + 0x6c]
mov byte [esp + 0xa4], 0x1b
call fcn.10083560
lea ecx, [esp + 0x68]
mov byte [esp + 0xa4], 0x1a
call fcn.10083560
lea ecx, [esp + 0x64]
mov byte [esp + 0xa4], 0x19
call fcn.10083560
lea ecx, [esp + 0x60]
mov byte [esp + 0xa4], 0
call fcn.10083560
push str.Attach
lea ecx, [esp + 0x1c]
call fcn.100b0900
test eax, eax
jne 0x100500f6
mov esi, dword [esp + 0x74]
push ebx
lea ecx, [esi + 0x28]
call fcn.1004bd80
lea ecx, [esp + 0x18]
mov dword [esi + 0x24], 1
mov dword [esp + 0xa4], 0xffffffff
call fcn.100af8e0
mov eax, 1
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 4