Function at 0x46a810
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], esi
mov dword [eax + 0x10], esi
jb 0x46a84d
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
cmp dword [ecx + 0x10], esi
je 0x46ae5e
cmp dword [ebx + 0x10], esi
je 0x46ae5e
push edi
push 0x20019
push str.mailto_shellopencommand
push 0x80000000
lea ecx, [ebp - 0xdc]
call fcn.0040a8c0
lea ecx, [ebp - 0x2c]
push ecx
xor eax, eax
mov edi, 7
push esi
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.0041fac0
test eax, eax
jne 0x46ae34
cmp dword [ebp - 0x1c], esi
je 0x46ae34
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0046a480
lea ecx, [ebp - 0x48]
push ecx
mov edx, ecx
push edx
call fcn.00417a40
add esp, 0x10
test al, al
je 0x46a938
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x46a8dd
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a938
mov edx, dword [ebp - 0xe0]
lea ecx, [ebp - 0x64]
push ecx
xor eax, eax
push edx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], ax
call fcn.00417a40
add esp, 8
test al, al
je 0x46a930
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0046a480
lea ecx, [ebp - 0x80]
push ecx
mov edx, ecx
push edx
call fcn.00417a40
add esp, 0x10
test al, al
jne 0x46a94d
lea ecx, [ebp - 0x80]
call fcn.0040a2c0
lea ecx, [ebp - 0x64]
call fcn.0040a2c0
lea ecx, [ebp - 0x48]
call fcn.0040a2c0
lea ecx, [ebp - 0x2c]
call fcn.0040a2c0
jmp 0x46ae52
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0043dfb0
add esp, 8
test al, al
je 0x46adbf
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.0043dfb0
add esp, 8
test al, al
je 0x46adbf
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [ebp - 0x1c]
jb 0x46a928
push 2
xor edx, edx
push 0x5145c0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], esi
mov word [ebp - 0x9c], dx
call fcn.00406300
cmp dword [ebp - 0x88], 8
mov eax, dword [ebp - 0x9c]
jae 0x46a9c1
lea eax, [ebp - 0x9c]
mov edi, dword [ebp - 0x8c]
push edi
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a410
mov esi, eax
cmp esi, 0xffffffff
jne 0x46aa10
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.00458f20
add esp, 8
test al, al
je 0x46ab9b
push esi
push 0
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0xe8]
call fcn.00406960
mov dword [ebp - 0xe4], 1
jmp 0x46ab9b
mov eax, dword [ebp - 0x1c]
add edi, esi
sub eax, edi
mov dword [ebp - 0xec], eax
cmp edi, dword [ebx + 0x10]
ja 0x46ab9b
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x46aa32
lea eax, [ebp - 0x2c]
push esi
push eax
push esi
push 0
mov ecx, ebx
call fcn.004073b0
test eax, eax
jne 0x46ab9b
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x46aa52
lea eax, [ebp - 0x2c]
lea edx, [eax + edi*2]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0xe0], ecx
xor edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x46aa62
sub eax, dword [ebp - 0xe0]
mov ecx, ebx
sar eax, 1
push eax
push 0xffffffffffffffff
push edx
call fcn.00427880
cmp eax, 0xffffffff
je 0x46ad03
mov edx, dword [ebp - 0xec]
lea ecx, [eax + edx]
cmp ecx, dword [ebx + 0x10]
jne 0x46ad03
cmp eax, esi
jbe 0x46ad03
sub eax, esi
push eax
push esi
xor edx, edx
push ebx
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xc0], 7
mov dword [ebp - 0xc4], edi
mov word [ebp - 0xd4], dx
call fcn.00406960
push 7
xor eax, eax
push str.mailto:
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], edi
mov word [ebp - 0xb8], ax
call fcn.00406300
mov edx, dword [ebp - 0xb8]
mov ebx, 8
cmp dword [ebp - 0xa4], ebx
jae 0x46ab10
lea edx, [ebp - 0xb8]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x46ab15
mov ecx, dword [ebp - 0xa8]
sub eax, esi
sar eax, 1
push eax
push edx
push ecx
push edi
lea ecx, [ebp - 0xd4]
call fcn.004073b0
test eax, eax
jne 0x46ab85
mov eax, dword [0x5145a8]
mov edx, dword [str._t_n_v_]
mov ecx, dword [0x5145ac]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x46ab60
sub eax, edx
sar eax, 1
push eax
push edi
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0xd4]
call fcn.0040f500
cmp eax, 0xffffffff
je 0x46abd8
lea ecx, [ebp - 0xb8]
call fcn.0040a2c0
lea ecx, [ebp - 0xd4]
call fcn.0040a2c0
lea ecx, [ebp - 0x9c]
call fcn.0040a2c0
lea ecx, [ebp - 0x80]
call fcn.0040a2c0
lea ecx, [ebp - 0x64]
call fcn.0040a2c0
lea ecx, [ebp - 0x48]
call fcn.0040a2c0
lea ecx, [ebp - 0x2c]
call fcn.0040a2c0
lea ecx, [ebp - 0xdc]
call fcn.0040aa70
xor esi, esi
jmp 0x46ae5d
mov ecx, dword [ebp - 0xe8]
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x48]
push eax
call fcn.00406960
mov dword [ebp - 0xe4], 1
cmp dword [ebp - 0xa4], ebx
jb 0x46ac0b
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], edi
mov word [ebp - 0xb8], dx
cmp dword [ebp - 0xc0], ebx
jb 0x46ac3c
mov eax, dword [ebp - 0xd4]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xc4], edi
mov word [ebp - 0xd4], cx
cmp dword [ebp - 0x88], ebx
jb 0x46ac68
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00406ec9
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], ax
cmp dword [ebp - 0x6c], ebx
jb 0x46ac8e
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x50], ebx
jb 0x46acab
mov eax, dword [ebp - 0x64]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x34], ebx
jb 0x46acc8
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406ec9
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], ebx
jb 0x46ace5
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
call fcn.0040aa70
xor esi, esi
jmp 0x46ae5d
mov ebx, 8
cmp dword [ebp - 0x88], ebx
jb 0x46ad1f
mov eax, dword [ebp - 0x9c]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], cx
cmp dword [ebp - 0x6c], ebx
jb 0x46ad4a
mov edx, dword [ebp - 0x80]
push edx
call fcn.00406ec9
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x50], ebx
jb 0x46ad67
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x34], ebx
jb 0x46ad84
mov eax, dword [ebp - 0x48]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], ebx
jb 0x46ada1
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406ec9
add esp, 4
xor eax, eax
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.0040aa70
xor esi, esi
jmp 0x46ae5d
mov ebx, 8
cmp dword [ebp - 0x6c], ebx
jb 0x46add5
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], esi
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x50], ebx
jb 0x46adf2
mov eax, dword [ebp - 0x64]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x34], ebx
jb 0x46ae0f
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406ec9
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], ebx
jb 0x46ae2c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
mov word [ebp - 0x2c], dx
jmp 0x46ae4c
cmp dword [ebp - 0x18], 8
jb 0x46ae46
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0xdc]
call fcn.0040aa70
pop edi
cmp dword [ebp - 0xe4], esi
mov ecx, dword [ebp - 4]
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret