Function at 0x1340bc50
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x134c71b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
mov eax, dword [0x13511b00]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x28], ecx
je 0x1340bc97
push str.CheckBadMailLog_____
push str.Winncap
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
call fcn.133bc510
add esp, 4
push str..eml
lea ecx, [esp + 0x20]
mov dword [esp + 0x198], ebp
call fcn.1343fd20
mov edx, dword [esp + 0x1c]
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x24], esi
je 0x1340bf2c
cmp dword [0x13511b00], ebp
je 0x1340bd0f
lea eax, [esp + 0x78]
push eax
push str.CheckBadMailLog___S_
push str.Winncap
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x14
lea ecx, [esp + 0x2c]
call fcn.13449130
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov byte [esp + 0x194], 1
mov bl, 3
test byte [esp + 0x4c], 0x10
jne 0x1340be81
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x18]
call fcn.1343e7e0
mov edx, dword [esp + 0x14]
mov byte [esp + 0x194], 2
mov esi, dword [edx - 8]
cmp esi, 4
jbe 0x1340be6c
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], eax
push ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x4c], eax
call fcn.133bc510
add esp, 4
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x198], bl
call fcn.1343fd80
add esi, 0xfffffffc
lea eax, [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.13441730
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x198], 4
call fcn.1343f290
lea ecx, [esp + 0x20]
mov byte [esp + 0x194], bl
call fcn.1343f110
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.134598b0
add esp, 8
test eax, eax
je 0x1340be5b
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.1343e6e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x194], 5
call fcn.134403d0
push str..mlg
push 0x134f01a0
lea ecx, [esp + 0x20]
call fcn.13440f50
mov ecx, dword [esp + 0x18]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x1340be4b
push str..mlg2
push str..mlg
lea ecx, [esp + 0x20]
call fcn.13440f50
mov edx, dword [esp + 0x18]
push edx
call edi
cmp eax, 0xffffffff
jne 0x1340be4b
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.13449730
lea ecx, [esp + 0x18]
mov byte [esp + 0x194], bl
call fcn.1343f110
lea ecx, [esp + 0x10]
mov byte [esp + 0x194], 2
call fcn.1343f110
lea ecx, [esp + 0x14]
mov byte [esp + 0x194], 1
call fcn.1343f110
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x4c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, ebp
jne 0x1340bd28
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x30]
xor esi, esi
cmp eax, ebp
jle 0x1340bf1b
mov bl, 6
push 0x13512ab0
lea ecx, [esp + 0x14]
call fcn.13443cf0
push 1
push 2
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x1a4], bl
call fcn.13443a90
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a4], 7
call fcn.1340bf60
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.1343e6e0
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x1a4], bl
call fcn.13401e80
lea ecx, [esp + 0x10]
mov byte [esp + 0x194], 1
call fcn.13444490
mov eax, dword [esp + 0x30]
inc esi
cmp esi, eax
jl 0x1340bea8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x194], 0
call fcn.13449140
lea ecx, [esp + 0x1c]
mov dword [esp + 0x194], 0xffffffff
call fcn.1343f110
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x188
ret