Function at 0x4de8d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e5695
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x82d084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xa4]
xor eax, eax
mov dword [ebp - 0x94], 0
push eax
push 0x75b10c
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
call fcn.0042fe00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
push 0
push 0x761dc7
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.00430160
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x75b10c
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
call fcn.0042fe00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push 0
push 0x761dc7
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00430160
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x75b10c
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
call fcn.0042fe00
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0x761550
push 0
push 0xfde9
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov dword [ebp - 0xc4], eax
inc eax
push eax
call fcn.00695088
mov edi, eax
add esp, 4
test edi, edi
je 0x4dea6c
mov eax, dword [ebp - 0xc4]
push 0
push 0
inc eax
push eax
push edi
push 0xffffffffffffffff
push 0x761550
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test eax, eax
jle 0x4dea63
mov eax, dword [ebp - 0xc4]
mov ecx, edi
mov byte [edi + eax], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4dea50
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.00430160
push edi
call fcn.00690e3e
add esp, 4
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x4dea76
mov ecx, dword [esi]
lea edx, [ebp - 0xa4]
call fcn.0050b8a0
cmp byte [ebx], 0
lea eax, [ebp - 0x5c]
je 0x4deb44
cmp eax, esi
je 0x4deaa7
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4dea9b
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00430160
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00441450
cmp dword [0x834d6c], 0x10
mov ecx, 0x834d58
push dword [0x834d68]
cmovae ecx, dword [0x834d58]
push ecx
mov ecx, eax
call fcn.00441450
cmp dword [ebp - 0x48], 0x10
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x74]
cmovae ecx, dword [ebp - 0x5c]
call fcn.0050b8a0
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x4deb0f
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4deb03
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00430160
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00441450
cmp dword [0x834e2c], 0x10
mov ecx, 0x834e18
push dword [0x834e28]
cmovae ecx, dword [0x834e18]
jmp 0x4debf6
cmp eax, esi
je 0x4deb5e
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4deb52
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00430160
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00441450
cmp dword [0x834cac], 0x10
mov ecx, 0x834c98
push dword [0x834ca8]
cmovae ecx, dword [0x834c98]
push ecx
mov ecx, eax
call fcn.00441450
cmp dword [ebp - 0x48], 0x10
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x74]
cmovae ecx, dword [ebp - 0x5c]
call fcn.0050b8a0
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x4debc6
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4debba
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00430160
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00441450
cmp dword [0x834dfc], 0x10
mov ecx, 0x834de8
push dword [0x834df8]
cmovae ecx, dword [0x834de8]
push ecx
mov ecx, eax
call fcn.00441450
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x8c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0050b8a0
push 0x854764
call fcn.0067f606
add esp, 4
test eax, eax
jne 0x4df2cf
push eax
push 0x761dc7
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], al
call fcn.00430160
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xdc]
push 0
push 0x761dc7
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0xf
mov byte [ebp - 0xdc], 0
call fcn.00430160
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc0]
push 0xd
push str.NglController
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
call fcn.00430160
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0xdc]
lea ecx, [ebp - 0xc0]
call fcn.005f8830
add esp, 4
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xac]
test eax, eax
setne byte [ebp - 0xa5]
cmp edx, 0x10
jb 0x4ded18
mov ecx, dword [ebp - 0xc0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ded0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4df2d5
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
cmp edx, 0x10
jb 0x4ded71
mov ecx, dword [ebp - 0xdc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ded67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4df2d5
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xe0]
cmp edx, 0x10
jb 0x4dedaf
mov ecx, dword [ebp - 0xf4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4deda5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4df2d5
push edx
push ecx
call fcn.0067bc93
add esp, 8
cmp byte [ebp - 0xa5], 0
je 0x4def5e
push 0
push 0x761dc7
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0xf
mov byte [ebp - 0xdc], 0
call fcn.00430160
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xf4]
push 0
push 0x761dc7
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
call fcn.00430160
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc0]
push 0xd
push str.NglController
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
call fcn.00430160
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0xf4]
lea ecx, [ebp - 0xc0]
call fcn.005f8830
add esp, 4
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae edx, dword [ebp - 0x2c]
mov ecx, dword [eax]
push edx
push str.VerifyAndSetNglWfDirPath
push str._s:_Path:__s
push eax
call dword [ecx + 0x14]
mov byte [ebp - 4], 0xa
add esp, 0x10
mov edx, dword [ebp - 0xac]
cmp edx, 0x10
jb 0x4deec7
mov ecx, dword [ebp - 0xc0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4deebd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4df2da
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
cmp edx, 0x10
jb 0x4def20
mov ecx, dword [ebp - 0xf4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4def16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4df2da
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xc8]
cmp edx, 0x10
jb 0x4def5e
mov ecx, dword [ebp - 0xdc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4def54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4df2da
push edx
push ecx
call fcn.0067bc93
add esp, 8
push 0x854764
call fcn.0067f62b
add esp, 4
test eax, eax
jne 0x4df2df
cmp dword [ebp - 0x90], 8
lea eax, [ebp - 0xa4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmovae eax, dword [ebp - 0xa4]
push eax
call esi
test eax, eax
je 0x4df177
cmp dword [ebp - 0x7c], 0
je 0x4df177
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x8c]
push eax
call edi
test eax, eax
je 0x4df177
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push eax
call esi
test eax, eax
jne 0x4df177
cmp dword [ebp - 0x64], eax
je 0x4df177
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push eax
call edi
test eax, eax
je 0x4df177
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push eax
call esi
test eax, eax
jne 0x4df177
lea esi, [ebx + 0x3d0]
push esi
mov dword [ebp - 0xc4], esi
call fcn.0067f606
add esp, 4
test eax, eax
jne 0x4df2e5
lea ecx, [ebx + 0x430]
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x2c]
cmp ecx, eax
je 0x4df054
cmp dword [ebp - 0x18], 0x10
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00430160
push esi
mov byte [ebp - 4], 0x13
call fcn.0067f62b
add esp, 4
test eax, eax
jne 0x4df2eb
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
mov dl, byte [ebx]
push eax
call fcn.0051d390
mov edx, dword [ebp - 0x30]
add esp, 4
cmp edx, 0x10
jb 0x4df0af
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4df0a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4df2f1
push edx
push ecx
call fcn.0067bc93
add esp, 8
lea ecx, [ebp - 0x8c]
call fcn.0042fd70
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4df0ee
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4df0e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4df2f1
push edx
push ecx
call fcn.0067bc93
add esp, 8
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.0042fd70
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x4df13c
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4df132
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4df2f1
push edx
push ecx
call fcn.0067bc93
add esp, 8
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.0042fd70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0067ba01
mov esp, ebp
pop ebp
ret 4
push ecx
call fcn.00573f70
add esp, 4
mov ecx, 0x854764
call fcn.004ba3a0
push 0x761dc7
lea ecx, [ebp - 0xc0]
call fcn.0042fd30
push 0x761dc7
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xc
call fcn.0042fd30
push str.NglController
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xd
call fcn.0042fd30
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0xe
push eax
lea edx, [ebp - 0xdc]
lea ecx, [ebp - 0xf4]
call fcn.005f8830
add esp, 4
lea ecx, [ebp - 0xf4]
mov esi, eax
call fcn.0042fce0
lea ecx, [ebp - 0xdc]
call fcn.0042fce0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.0042fce0
test esi, esi
je 0x4df2a4
push 0x761dc7
lea ecx, [ebp - 0xc0]
call fcn.0042fd30
push 0x761dc7
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xf
call fcn.0042fd30
push str.NglController
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0x10
call fcn.0042fd30
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x11
push eax
lea edx, [ebp - 0xdc]
lea ecx, [ebp - 0xf4]
call fcn.005f8830
add esp, 4
mov ecx, dword [eax]
push str.VerifyAndSetNglWfDirPath
push str._s:_WF_executable_s__not_found
push 0x761dc7
push eax
call dword [ecx + 0x24]
add esp, 0x10
lea ecx, [ebp - 0xf4]
call fcn.0042fce0
lea ecx, [ebp - 0xdc]
call fcn.0042fce0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.0042fce0
mov ecx, 0x854764
call fcn.004ba3c0
push str.Invalid_WF_executables_path
lea ecx, [ebp - 0xb4]
call fcn.004ba110
push 0x8292f0
lea eax, [ebp - 0xb4]
push eax
call fcn.0068dc86
push eax
call fcn.0067f8f8
call fcn.00691015
call fcn.00691015
push eax
call fcn.0067f8f8
push eax
call fcn.0067f8f8
push eax
call fcn.0067f8f8
call fcn.00691015
int3