Function at 0x40e760
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x45dab8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebp
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 0x48], 5
lea ecx, [esp + 0x30]
call fcn.00431204
mov byte [esp + 0x48], 6
lea ecx, [esp + 0x14]
call fcn.00406fc0
mov byte [esp + 0x48], 7
lea ecx, [esp + 0x1c]
call fcn.00406fc0
mov byte [esp + 0x48], 8
lea ecx, [esp + 0x18]
call fcn.00406fc0
mov byte [esp + 0x48], 9
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40e7f0
push 0x104
lea ecx, [esp + 0x18]
call fcn.00406c20
mov edx, dword [esp + 0x14]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00442d0b
add esp, 8
test eax, eax
jl 0x40ec94
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x40ec94
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.004060a0
add esp, 0xc
mov byte [esp + 0x48], 0xa
push 0x46b8ec
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00406150
add esp, 0xc
mov byte [esp + 0x48], 0xb
push 0x46c198
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00406150
add esp, 0xc
mov byte [esp + 0x48], 0xc
push eax
lea ecx, [esp + 0x1c]
call fcn.00406800
mov byte [esp + 0x48], 0xb
lea ecx, [esp + 0x24]
call fcn.00406ed0
mov byte [esp + 0x48], 0xa
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov byte [esp + 0x48], 9
lea ecx, [esp + 0x28]
call fcn.00406ed0
mov eax, dword [esp + 0x54]
mov ecx, str._this
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e8e6
test dx, dx
je 0x40e8e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e8e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e8c0
xor eax, eax
jmp 0x40e8eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x40e9af
mov edx, dword [esp + 0x14]
test edx, edx
je 0x40e9aa
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e910
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x44]
call fcn.00406cd0
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x34]
call fcn.00431b2f
mov byte [esp + 0x48], 0xd
push eax
lea ecx, [esp + 0x20]
call fcn.00406800
mov byte [esp + 0x48], 9
lea ecx, [esp + 0x28]
call fcn.00406ed0
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jge 0x40e971
or eax, 0xffffffff
push 3
inc eax
push eax
lea ecx, [esp + 0x24]
call fcn.0040f9e0
jmp 0x40e9bd
push 0x46b8ec
push eax
call fcn.0044298b
add esp, 8
test eax, eax
jne 0x40e995
or eax, 0xffffffff
push 3
inc eax
push eax
lea ecx, [esp + 0x24]
call fcn.0040f9e0
jmp 0x40e9bd
sub eax, dword [esp + 0x1c]
push 3
sar eax, 1
inc eax
push eax
lea ecx, [esp + 0x24]
call fcn.0040f9e0
jmp 0x40e9bd
call fcn.0042df48
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x18]
call fcn.00406800
mov ecx, dword [esp + 0x18]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
mov esi, 2
call ebp
test eax, eax
je 0x40eb6b
lea ecx, [esp + 0x20]
call fcn.00406fc0
mov byte [esp + 0x48], 0xe
lea ecx, [esp + 0x24]
call fcn.00406fc0
mov byte [esp + 0x48], 0xf
lea edx, [esp + 0x20]
push edx
push ecx
lea eax, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
lea edi, [esp + 0x30]
call fcn.00406730
mov byte [esp + 0x50], 0x10
push ecx
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00406730
mov byte [esp + 0x54], 0x11
mov byte [esp + 0x54], 0xf
call fcn.0040ee80
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x40ea4b
push 0x80004005
call fcn.00406f30
mov eax, dword [esp + 0x20]
push ecx
push eax
call fcn.00442ec2
add esp, 8
test eax, eax
jne 0x40eb26
mov byte [esp + 0x48], 0xe
lea ecx, [esp + 0x24]
call fcn.00406ed0
mov byte [esp + 0x48], 9
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov byte [esp + 0x48], 8
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x48], 7
lea ecx, [esp + 0x1c]
call fcn.00406ed0
mov byte [esp + 0x48], 6
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov byte [esp + 0x48], 5
lea ecx, [esp + 0x30]
call fcn.0043130c
mov byte [esp + 0x48], 4
lea ecx, [esp + 0x54]
call fcn.00406ed0
mov byte [esp + 0x48], 3
lea ecx, [esp + 0x58]
call fcn.00406ed0
mov byte [esp + 0x48], 2
lea ecx, [esp + 0x5c]
call fcn.00406ed0
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x60]
call fcn.00406ed0
mov byte [esp + 0x48], 0
lea ecx, [esp + 0x64]
call fcn.00406ed0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.00406ed0
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret 0x20
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
push esi
push ecx
push edx
lea eax, [esp + 0x24]
push str._s_s___i_.lnk
push eax
call fcn.004066b0
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push ecx
inc esi
call ebp
test eax, eax
jne 0x40eb26
mov byte [esp + 0x48], 0xe
lea ecx, [esp + 0x24]
call fcn.00406ed0
mov byte [esp + 0x48], 9
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov edx, dword [esp + 0x6c]
push edx
push ecx
lea eax, [esp + 0x70]
mov ecx, esp
mov dword [esp + 0x74], esp
push eax
call fcn.00406730
mov byte [esp + 0x50], 0x12
push ecx
lea edx, [esp + 0x70]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00406730
mov byte [esp + 0x54], 0x13
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00406730
mov byte [esp + 0x58], 0x14
push ecx
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00406730
mov byte [esp + 0x5c], 0x15
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00406730
mov byte [esp + 0x60], 0x16
mov byte [esp + 0x60], 9
mov ecx, dword [esp + 0x68]
call fcn.0040eca0
mov esi, eax
mov byte [esp + 0x48], 8
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x48], 7
lea ecx, [esp + 0x1c]
call fcn.00406ed0
mov byte [esp + 0x48], 6
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov byte [esp + 0x48], 5
lea ecx, [esp + 0x30]
call fcn.0043130c
mov byte [esp + 0x48], 4
lea ecx, [esp + 0x54]
call fcn.00406ed0
mov byte [esp + 0x48], 3
lea ecx, [esp + 0x58]
call fcn.00406ed0
mov byte [esp + 0x48], 2
lea ecx, [esp + 0x5c]
call fcn.00406ed0
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x60]
call fcn.00406ed0
mov byte [esp + 0x48], 0
lea ecx, [esp + 0x64]
call fcn.00406ed0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.00406ed0
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret 0x20
push 0x80070057
call fcn.00406f30
int3