Function at 0x40cd60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fb96
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x6160b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x61f750]
test esi, esi
jne 0x40cdce
push 0x120
call fcn.004144ef
mov esi, eax
add esp, 4
mov dword [ebp - 0x474], esi
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0041d7f4
mov dword [ebp - 4], 0xffffffff
mov dword [esi], vtable.CConfigure.0
mov dword [0x61f750], esi
push 0
push str.aa4b45
push str.Setting
mov ecx, esi
call fcn.0041dc8b
cmp eax, 1
jne 0x40d086
push 6
xor eax, eax
mov dword [ebp - 0x444], 7
push str.971da6
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x448], 0
mov word [ebp - 0x458], ax
call fcn.00403020
mov dword [ebp - 4], 1
mov esi, dword [0x61f750]
test esi, esi
jne 0x40ce5a
push 0x120
call fcn.004144ef
mov esi, eax
add esp, 4
mov dword [ebp - 0x474], esi
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0041d7f4
mov byte [ebp - 4], 1
mov dword [esi], vtable.CConfigure.0
mov dword [0x61f750], esi
mov ecx, esi
call fcn.0041db3c
mov edx, eax
mov dword [ebp - 0x414], 7
xor eax, eax
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
cmp word [edx], ax
jne 0x40ce89
xor ecx, ecx
jmp 0x40ce9f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ce90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x428]
call fcn.00403020
mov byte [ebp - 4], 3
call fcn.0041cf7f
test al, al
je 0x40cecf
pop esp
push ebx
pop edx
pop esp
pop edi
push edi
pop ecx
pop esp
pop ecx
push eax
push edx
push edx
pop esp
push esi
push ebx
push ebx
pop eax
push edi
pop ebp
push esp
push esp
push esi
call fcn.0041ceb0
test al, al
je 0x40cef4
push ebp
push edx
pop ebx
pop ebx
push esp
push eax
push edx
pop edx
push ebp
pop ecx
push edx
pop edx
pop esp
push edx
push ebx
pop ebx
push eax
push ecx
pop edx
push ebp
pop edi
pop esi
push esi
pop ecx
push edi
push eax
pop esi
push ebp
call fcn.0041cc43
test al, al
je 0x40cf1b
pop edi
pop edx
pop ebx
push ecx
push edx
pop esi
push edx
push esi
push esp
push edx
pop eax
pop eax
push edx
pop edi
pop ebp
pop esi
push edi
pop edi
push esp
pop esi
push esp
push esp
pop ecx
pop eax
push edi
push ebp
push edi
pop ebp
pop ebp
push esp
push 0xc
push str.WinPotri.exe
lea ecx, [ebp - 0x428]
call fcn.004034d0
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d026
push 0x60e9e0
lea ecx, [ebp - 0x470]
call fcn.00402db0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x470]
call fcn.00403600
push 2
push 0x60e9e4
lea ecx, [ebp - 0x470]
call fcn.004034d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x470]
call fcn.00403600
call fcn.00420cfc
test eax, eax
je 0x40cfd2
cmp dword [ebp - 0x45c], 8
lea eax, [ebp - 0x470]
push 0
cmovae eax, dword [ebp - 0x470]
push 0
push 0
push 0
push eax
call fcn.0042a80d
add esp, 0x14
jmp 0x40d008
cmp dword [ebp - 0x444], 8
lea ecx, [ebp - 0x458]
push 0xffffffffffffffff
cmovae ecx, dword [ebp - 0x458]
lea eax, [ebp - 0x428]
cmp dword [ebp - 0x414], 8
push 0
cmovae eax, dword [ebp - 0x428]
push ecx
push eax
call fcn.0042a763
add esp, 0x10
mov eax, dword [ebp - 0x45c]
cmp eax, 8
jb 0x40d026
inc eax
lea ecx, [ebp - 0x470]
push eax
push dword [ebp - 0x470]
call fcn.00403340
mov eax, dword [ebp - 0x414]
cmp eax, 8
jb 0x40d044
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00403340
xor eax, eax
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x418], 0
cmp eax, 8
jb 0x40d07f
inc eax
lea ecx, [ebp - 0x458]
push eax
push dword [ebp - 0x458]
call fcn.00403340
xor eax, eax
jmp 0x40d246
push 0x493e0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00434140
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x410]
push 0x5c
push eax
call fcn.0043302d
xor ecx, ecx
add esp, 8
mov word [eax + 2], cx
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], ecx
mov word [ebp - 0x440], ax
cmp word [ebp - 0x410], ax
je 0x40d10f
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d100
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x440]
call fcn.00403020
push 0xc
push str.WinUterf.exe
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], 5
call fcn.004034d0
call fcn.0041d0d8
test al, al
je 0x40d15a
pop ebx
push eax
pop ecx
pop esi
push ebx
pop edx
pop eax
pop eax
push ebp
push edi
push ebx
pop ebp
push esi
push ecx
push ecx
push eax
pop edx
push edi
pop ecx
push esp
push ebx
push ecx
call fcn.0041cfc4
test al, al
je 0x40d183
push ecx
pop ecx
push esi
push esp
pop ebp
push ebp
push ecx
pop eax
pop esp
pop ecx
pop eax
push ebx
pop eax
push eax
pop edx
pop ebp
push ecx
push edx
pop ebp
push edi
pop ecx
pop eax
push esi
push edx
pop edi
push esp
push esi
pop edx
pop edx
pop edi
push ebp
push ecx
call fcn.0041d093
test al, al
je 0x40d1a3
pop eax
push ebx
push esp
pop ebx
push edi
pop ecx
pop edx
push esi
pop eax
pop edx
pop ecx
push esi
push ebx
push esi
push esp
pop esp
pop eax
push esi
pop edi
pop ecx
push esp
push ebx
pop eax
call fcn.0041cf3a
test al, al
je 0x40d1c2
pop ebx
pop ecx
push eax
pop eax
pop esi
pop edi
push edx
pop ebp
push esi
pop esi
push ecx
push ecx
pop esi
push ebp
pop ecx
push edi
pop ebx
pop ebx
pop ebp
pop eax
pop eax
push edi
call fcn.0041cf3a
test al, al
je 0x40d1dc
pop ebx
pop eax
push esi
pop ebx
pop eax
pop ebx
pop ebx
push ecx
pop ecx
push edx
push edx
pop edi
pop esp
pop ebp
pop eax
pop esi
pop ecx
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d223
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
push 0
cmovae eax, dword [ebp - 0x440]
push 0
push 0
push str.9672db
push eax
call fcn.0042a80d
add esp, 0x14
mov eax, dword [ebp - 0x42c]
cmp eax, 8
jb 0x40d241
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00403340
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004144d9
mov esp, ebp
pop ebp
ret