Function at 0x4580e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
mov dword [ebp - 0xd4], 0
je 0x45865e
cmp dword [ebx + 0x10], 0
je 0x45865e
push edi
push 0x20019
push str.mailto_shellopencommand
push 0x80000000
lea ecx, [ebp - 0xd0]
call fcn.0040a670
lea ecx, [ebp - 0x20]
xor eax, eax
push ecx
mov edi, 7
push eax
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
call fcn.00422fd0
test eax, eax
jne 0x458630
cmp dword [ebp - 0x10], eax
je 0x458630
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00457dd0
lea ecx, [ebp - 0x3c]
push ecx
mov edx, ecx
push edx
call fcn.00416360
add esp, 0x10
test al, al
je 0x4582aa
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x45819a
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4582aa
lea ecx, [ebp - 0x58]
push ecx
xor eax, eax
push esi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00416360
add esp, 8
test al, al
je 0x4582a2
lea edx, [ebp - 0x74]
push ebx
push edx
call fcn.00457dd0
lea eax, [ebp - 0x74]
push eax
mov ecx, eax
push ecx
call fcn.00416360
add esp, 0x10
test al, al
je 0x45829a
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.0045b1d0
add esp, 8
test al, al
je 0x4585b6
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x74]
push edx
call fcn.0045b1d0
add esp, 8
test al, al
je 0x4585b6
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebp - 0x10]
jb 0x45829a
xor ecx, ecx
push 2
mov word [ebp - 0x90], cx
push 0x4ed8ac
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], 0
call fcn.00406030
cmp dword [ebp - 0x7c], 8
mov eax, dword [ebp - 0x90]
jae 0x45825e
lea eax, [ebp - 0x90]
mov edi, dword [ebp - 0x80]
push edi
push 0
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a0b0
mov esi, eax
cmp esi, 0xffffffff
jne 0x4582bf
lea edx, [ebp - 0x20]
push edx
push ebx
call fcn.0044cad0
add esp, 8
test al, al
je 0x45828f
mov dword [ebp - 0xd4], 1
lea ecx, [ebp - 0x90]
call fcn.00409fe0
lea ecx, [ebp - 0x74]
call fcn.00409fe0
lea ecx, [ebp - 0x58]
call fcn.00409fe0
lea ecx, [ebp - 0x3c]
call fcn.00409fe0
lea ecx, [ebp - 0x20]
call fcn.00409fe0
jmp 0x458652
mov eax, dword [ebp - 0x10]
add edi, esi
sub eax, edi
mov dword [ebp - 0xd8], eax
cmp edi, dword [ebx + 0x10]
ja 0x45828f
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x4582dd
lea eax, [ebp - 0x20]
push esi
push eax
push esi
push 0
mov ecx, ebx
call fcn.004071e0
test eax, eax
jne 0x45828f
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x4582f9
lea eax, [ebp - 0x20]
lea edx, [eax + edi*2]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458301
sub eax, edi
sar eax, 1
push eax
push 0xffffffffffffffff
push edx
mov ecx, ebx
call fcn.00417850
cmp eax, 0xffffffff
je 0x45850e
mov ecx, dword [ebp - 0xd8]
lea edx, [eax + ecx]
cmp edx, dword [ebx + 0x10]
jne 0x45850e
cmp eax, esi
jbe 0x45850e
sub eax, esi
push eax
xor ecx, ecx
push esi
mov word [ebp - 0xc8], cx
xor edi, edi
push ebx
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xb4], 7
mov dword [ebp - 0xb8], edi
call fcn.00406690
mov ebx, 7
push ebx
xor edx, edx
push str.mailto:
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x9c], edi
mov word [ebp - 0xac], dx
call fcn.00406030
cmp dword [ebp - 0x98], 8
mov edx, dword [ebp - 0xac]
jae 0x4583a9
lea edx, [ebp - 0xac]
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4583b0
sub eax, esi
sar eax, 1
push eax
mov eax, dword [ebp - 0x9c]
push edx
push eax
push edi
lea ecx, [ebp - 0xc8]
call fcn.004071e0
test eax, eax
je 0x4583f3
lea ecx, [ebp - 0xac]
call fcn.00409fe0
lea ecx, [ebp - 0xc8]
call fcn.00409fe0
jmp 0x45828f
push 1
push edi
push 0x4ed7c0
lea ecx, [ebp - 0xc8]
call fcn.0040a0b0
cmp eax, 0xffffffff
jne 0x4583d8
mov esi, 8
mov dword [ebp - 0xd4], 1
cmp dword [ebp - 0x98], esi
jb 0x458431
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x9c], edi
mov word [ebp - 0xac], dx
cmp dword [ebp - 0xb4], esi
jb 0x45845d
mov eax, dword [ebp - 0xc8]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], edi
mov word [ebp - 0xc8], cx
cmp dword [ebp - 0x7c], esi
jb 0x458486
mov edx, dword [ebp - 0x90]
push edx
call fcn.00406cf9
add esp, 4
xor eax, eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], edi
mov word [ebp - 0x90], ax
cmp dword [ebp - 0x60], esi
jb 0x4584a6
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], edi
mov word [ebp - 0x74], dx
cmp dword [ebp - 0x44], esi
jb 0x4584c3
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], edi
mov word [ebp - 0x58], cx
cmp dword [ebp - 0x28], esi
jb 0x4584e0
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406cf9
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x3c], ax
cmp dword [ebp - 0xc], esi
jb 0x4584fd
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov word [ebp - 0x20], dx
jmp 0x458652
mov ebx, 8
cmp dword [ebp - 0x7c], ebx
jb 0x458527
mov eax, dword [ebp - 0x90]
push eax
call fcn.00406cf9
add esp, 4
xor edi, edi
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], edi
mov word [ebp - 0x90], cx
cmp dword [ebp - 0x60], ebx
jb 0x45854e
mov edx, dword [ebp - 0x74]
push edx
call fcn.00406cf9
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], edi
mov word [ebp - 0x74], ax
cmp dword [ebp - 0x44], ebx
jb 0x45856b
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], edi
mov word [ebp - 0x58], dx
cmp dword [ebp - 0x28], ebx
jb 0x458588
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x3c], cx
cmp dword [ebp - 0xc], ebx
jb 0x4585a5
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406cf9
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov word [ebp - 0x20], ax
jmp 0x458652
mov ebx, 8
cmp dword [ebp - 0x60], ebx
jb 0x4585cc
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00406cf9
add esp, 4
xor esi, esi
xor edx, edx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], esi
mov word [ebp - 0x74], dx
cmp dword [ebp - 0x44], ebx
jb 0x4585eb
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
mov word [ebp - 0x58], cx
cmp dword [ebp - 0x28], ebx
jb 0x458608
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406cf9
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], ax
cmp dword [ebp - 0xc], ebx
jb 0x458625
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
mov dword [ebp - 0x10], esi
mov word [ebp - 0x20], dx
jmp 0x45864f
cmp dword [ebp - 0xc], 8
jb 0x458642
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], cx
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0xd0]
call fcn.0040aa80
pop edi
cmp dword [ebp - 0xd4], 0
mov ecx, dword [ebp - 4]
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret