Function at 0x40d9d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a61fd
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
call fcn.004064d0
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004050a0
push 0x12
push str.selfdefplusyb1.ncx
lea ecx, [ebp - 0x28]
call fcn.0040b370
call fcn.00407460
push 0
push ecx
push 0
push ecx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00407880
test eax, eax
je 0x40dd0b
cmp dword [ebp - 0x30], 0
je 0x40daa2
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
call fcn.00401800
cmp dword [eax + 0x14], 8
jb 0x40da91
mov eax, dword [eax]
push eax
push ecx
mov edx, esi
mov ecx, str.CMSPathSetup
call fcn.00421880
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40dae0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dad6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de4c
push edx
push ecx
call fcn.0044434d
add esp, 8
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x40]
cmp edx, 8
jb 0x40daf3
test ecx, ecx
je 0x40de00
cmp edx, 8
lea eax, [ebp - 0x40]
cmovae eax, ecx
cmp word [eax], 0
je 0x40de00
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x40]
cmp edx, 8
cmovae eax, ecx
push eax
call esi
test eax, eax
je 0x40ddfa
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00401ad0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call esi
test eax, eax
je 0x40db6d
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x58]
push ecx
call fcn.00415ff0
add esp, 4
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
mov dword [ebp - 0x28], 0
cmovae esi, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00401ad0
cmp dword [ebp - 0x18], 0
je 0x40dd4c
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push ecx
cmovae edx, dword [ebp - 0x28]
mov ecx, esi
call fcn.00422ce0
mov byte [ebp - 4], 2
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40dbfd
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dbf3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de51
push edx
push ecx
call fcn.0044434d
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00401bc0
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.0040a840
call fcn.0040d710
mov edx, dword [ebp - 0x14]
test eax, eax
je 0x40dd8d
cmp edx, 8
jb 0x40dc79
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dc6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de56
push edx
push ecx
call fcn.0044434d
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40dcb3
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dca9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de56
push edx
push ecx
call fcn.0044434d
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x40dd01
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dcf7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de56
push edx
push ecx
call fcn.0044434d
add esp, 8
mov eax, 1
jmp 0x40de32
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40dae0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dad6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de4c
jmp 0x40dad6
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40dbfd
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dbf3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de51
jmp 0x40dbf3
cmp edx, 8
jb 0x40ddc4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ddba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de56
push edx
push ecx
call fcn.0044434d
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40ddfa
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ddf0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de56
push edx
push ecx
call fcn.0044434d
add esp, 8
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40de30
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40de26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de5b
push edx
push ecx
call fcn.0044434d
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
ret
call fcn.00447297
call fcn.00447297
call fcn.00447297
call fcn.00447297
int3