Function at 0x40e290
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bb6e
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x6240b8]
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
call fcn.0040e150
mov ecx, eax
test ecx, ecx
je 0x40e2d8
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x40e8b4
push 0xd
xor eax, eax
mov dword [ebp - 0xa4], 7
push str.WinPetrNs.exe
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
call fcn.00401820
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
push 0xc
xor eax, eax
mov dword [ebp - 0x5c], 7
push str.WinTpwer.exe
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.00401820
mov byte [ebp - 4], 1
cmp dword [ebp - 0xa8], 0
je 0x40e86d
cmp dword [ebp - 0x60], 0
je 0x40e86d
call fcn.00408dc0
mov ecx, eax
call fcn.00429ba1
test al, al
jne 0x40e86d
call fcn.00408dc0
mov ecx, eax
call fcn.00429abf
test al, al
jne 0x40e86d
push 0
call fcn.00442f67
add esp, 4
mov edi, eax
push 1
push str.08b675
push str.Setting
call fcn.00408dc0
mov ecx, eax
call fcn.00428afe
test eax, eax
jne 0x40e42f
call fcn.00408dc0
mov ecx, eax
call fcn.00429b72
test al, al
jne 0x40e42f
push 0
push str.219d64
push str.Setting
call fcn.00408dc0
mov ecx, eax
call fcn.00428afe
mov esi, eax
cmp esi, 0x64
jg 0x40e42f
push 0
push str.b96d63
push str.Setting
call fcn.00408dc0
mov ecx, eax
call fcn.00428afe
mov ecx, edi
sub ecx, eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x708
jl 0x40e413
lea eax, [esi + 1]
push eax
push str.219d64
push str.Setting
call fcn.00408dc0
mov ecx, eax
call fcn.0042a4eb
push edi
push str.b96d63
push str.Setting
call fcn.00408dc0
mov ecx, eax
call fcn.0042a4eb
jmp 0x40e86d
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
push eax
push str.66918c
push str.Setting
mov byte [ebp - 4], 3
xor bl, bl
call fcn.00408dc0
mov ecx, eax
call fcn.00428afe
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x88]
test al, 1
jne 0x40e494
push str.WinPetrNs.exe
mov bl, 1
call fcn.004017d0
push str.6b4fa8
jmp 0x40e4a3
push str.WinTpwer.exe
call fcn.004017d0
push str.9f10f3
lea ecx, [ebp - 0x40]
call fcn.004017d0
call fcn.00408dc0
mov ecx, eax
call fcn.004289af
push eax
lea ecx, [ebp - 0x118]
call fcn.004015d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x118]
call fcn.00404a10
mov ecx, dword [ebp - 0x128]
xor eax, eax
inc ecx
cmp ecx, 0x3e8
cmovl eax, ecx
push eax
push str.66918c
push str.Setting
call fcn.00408dc0
mov ecx, eax
call fcn.0042a4eb
cmp dword [ebp - 0x78], 0
je 0x40e84f
call fcn.0042752a
test al, al
je 0x40e52a
push ebp
pop ecx
pop edx
pop esi
pop edi
pop esp
pop esi
push edi
pop esp
push esi
push ecx
push edi
push edx
pop edi
pop edi
push edx
push edi
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x58]
call fcn.00401630
mov byte [ebp - 4], 5
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0042cd02
add esp, 4
test eax, eax
jne 0x40e847
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401630
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e5cc
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
lea edi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
cmovae edi, dword [ebp - 0x28]
call fcn.00408dc0
cmp byte [eax + 5], 0
je 0x40e5b4
push 1
push esi
push edi
call fcn.0042d3b0
add esp, 0xc
movzx eax, al
jmp 0x40e5c4
push 0
push 0
push 0
push esi
push edi
call fcn.0042d158
add esp, 0x14
test eax, eax
jne 0x40e83f
push str.173225345362446349005370104050430348535469332222
lea ecx, [ebp - 0xe8]
call fcn.004089c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xe8]
test bl, bl
je 0x40e5f1
push str.173225345362446349005370104050430348535469332222
jmp 0x40e5f6
push str.7202953351643869510741606759136967592238
call fcn.00406420
cmp dword [ebp - 0xd4], 0x10
lea eax, [ebp - 0xe8]
cmovae eax, dword [ebp - 0xe8]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00425d2b
add esp, 8
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
push 0x619ebc
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 9
call fcn.004089c0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x100]
cmp dword [ebp - 0xec], 0x10
lea ecx, [ebp - 0xa0]
cmovae eax, dword [ebp - 0x100]
push eax
call fcn.004089c0
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0042c201
add esp, 0xc
lea ecx, [ebp - 0xa0]
call fcn.00404680
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 9
call fcn.00404680
mov esi, dword [ebp - 0x124]
mov eax, dword [ebp - 0x120]
cmp esi, eax
je 0x40e81e
cmp dword [esi + 0x14], 0x10
jb 0x40e6ce
mov eax, dword [esi]
jmp 0x40e6d0
mov eax, esi
push eax
lea ecx, [ebp - 0xd0]
call fcn.004089c0
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0042c372
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.004045f0
lea ecx, [ebp - 0xa0]
call fcn.00401590
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0042cd02
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd0]
call fcn.00404680
mov eax, dword [ebp - 0x120]
add esi, 0x18
cmp esi, eax
jne 0x40e6c4
mov esi, dword [ebp - 0x124]
cmp esi, eax
je 0x40e81e
cmp dword [esi + 0x14], 0x10
jb 0x40e752
mov eax, dword [esi]
jmp 0x40e754
mov eax, esi
push eax
lea ecx, [ebp - 0xa0]
call fcn.004089c0
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.0042c372
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.004045f0
lea ecx, [ebp - 0xd0]
call fcn.00401590
call fcn.00408dc0
mov ecx, eax
call fcn.004289af
push eax
lea ecx, [ebp - 0x28]
call fcn.004017d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404a10
cmp dword [ebp - 0x2c], 8
lea edi, [ebp - 0x40]
lea ebx, [ebp - 0x28]
cmovae edi, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
cmovae ebx, dword [ebp - 0x28]
call fcn.00408dc0
cmp byte [eax + 5], 0
je 0x40e7e5
push 1
push edi
push ebx
call fcn.0042d3b0
add esp, 0xc
movzx eax, al
jmp 0x40e7f5
push 0
push 0
push 0
push edi
push ebx
call fcn.0042d158
add esp, 0x14
lea ecx, [ebp - 0xa0]
test eax, eax
jne 0x40e819
mov byte [ebp - 4], 9
call fcn.00404680
add esi, 0x18
cmp esi, dword [ebp - 0x120]
jne 0x40e748
jmp 0x40e81e
call fcn.00404680
lea ecx, [ebp - 0x124]
call fcn.004087f0
lea ecx, [ebp - 0x100]
call fcn.00404680
lea ecx, [ebp - 0xe8]
call fcn.00404680
lea ecx, [ebp - 0x28]
call fcn.00401590
lea ecx, [ebp - 0x58]
call fcn.00401590
lea ecx, [ebp - 0x118]
call fcn.00401590
lea ecx, [ebp - 0x40]
call fcn.00401590
lea ecx, [ebp - 0x88]
call fcn.00401590
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40e882
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00401b30
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x40e8b4
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00401b30
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.0041eca9
mov esp, ebp
pop ebp
ret 4