Function at 0x40f510
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x677a89
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x71a06c]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x94]
test ecx, ecx
jne 0x40f86d
push 0x3a8
sub esp, 0x18
mov eax, esp
push ecx
push 0x1c
push eax
call fcn.004cf48b
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
call fcn.004ce37a
add esp, 0x20
lea ecx, [ebp - 0x28]
push eax
call fcn.00406c50
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40f5ed
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f5e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff14
push edx
push ecx
call fcn.0042eb40
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.004cd90a
add esp, 4
test eax, eax
jne 0x40f64b
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x701bb0
cmp eax, 1
jb 0x40f634
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.00507910
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40f64b
mov byte [ebp - 0x1a4], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x1a4]
push 1
call fcn.00407e50
cmp dword [ebx + 0x80], 0x10
lea edi, [ebx + 0x6c]
mov eax, edi
jb 0x40f65b
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406b40
push dword [ebp - 0x1a4]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push 1
push 0x701d3c
push 0xffffffffffffffff
push esi
push eax
call fcn.00411b80
mov ecx, eax
add esp, 0x18
cmp ecx, 0xffffffff
je 0x40f705
cmp esi, ecx
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 0xf
cmovb ecx, esi
mov byte [ebp - 0x58], 0
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
call fcn.00407210
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406c50
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40f705
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f6fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff19
push edx
push ecx
call fcn.0042eb40
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.004cd90a
add esp, 4
test eax, eax
jne 0x40f763
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x701bb0
cmp eax, 1
jb 0x40f74c
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.00507910
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40f763
mov byte [ebp - 0x1a4], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x1a4]
push 1
call fcn.00407e50
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40f82e
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 2
push eax
push 0x3a8
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00406d70
lea eax, [ebp - 0x58]
push eax
call fcn.004cdff9
add esp, 0x20
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x40f7b3
mov eax, dword [eax]
push eax
call fcn.004cf296
mov byte [ebp - 4], 2
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40f7fa
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f7f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff1e
push edx
push ecx
call fcn.0042eb40
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x40f82a
mov edx, dword [ecx]
lea eax, [ebp - 0x80]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 0x10
jb 0x40f841
mov edi, dword [edi]
push 0
push 0
push 0x701bbc
push eax
push edi
call fcn.004e77b0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00407210
jmp 0x40f909
lea esi, [ebx + 0x84]
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x40f88e
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40f884
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00407210
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x40f8ab
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40f89f
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00407210
lea eax, [ebp - 0x40]
push eax
call fcn.004cd90a
add esp, 4
test eax, eax
jne 0x40f909
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
push 1
push 0x701bb0
cmp eax, 1
jb 0x40f8f2
cmp edx, 0x10
lea esi, [ebp - 0x40]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x40]
add esi, ecx
mov dword [ebp - 0x30], eax
push esi
call fcn.00507910
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40f909
mov byte [ebp - 0x1a4], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x1a4]
push 1
call fcn.00407e50
add ebx, 0x18
mov ecx, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x40f916
mov ecx, dword [ebx]
mov esi, dword [ebp - 0x2c]
mov eax, esi
mov edi, dword [ebx + 0x10]
mov edx, dword [ebp - 0x30]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x40f94b
lea eax, [edi + edx]
cmp esi, 0x10
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
lea esi, [eax + edx]
push esi
call fcn.00507910
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x40f961
mov byte [ebp - 0x1a4], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x1a4]
push edi
call fcn.00407e50
call fcn.004d34ff
test al, al
je 0x40fa2e
mov eax, dword [0x72ad00]
test eax, eax
je 0x40fa2e
cmp dword [eax + 4], 5
jl 0x40fa2e
sub esp, 0xc
lea ecx, [ebp - 0x1a0]
push 0x112
push str.CDoOwerModeInstall::OnDoDllInstall
push 5
call fcn.0040e840
mov dword [ebp - 0x1a4], eax
lea esi, [eax + 0x30]
mov byte [ebp - 4], 5
mov edx, str.ins_:
mov ecx, esi
call fcn.0040e6b0
cmp dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x40]
mov ecx, esi
cmovae edx, dword [ebp - 0x40]
call fcn.0040e6b0
mov edx, str._param:
mov ecx, esi
call fcn.0040e6b0
mov edi, dword [ebp - 0x1a8]
cmp dword [edi + 0x5c], 0x10
lea edx, [edi + 0x48]
jb 0x40f9e7
mov edx, dword [edx]
mov ecx, esi
call fcn.0040e6b0
mov edx, str._path:
mov ecx, esi
call fcn.0040e6b0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov ecx, esi
cmovae edx, dword [ebp - 0x28]
call fcn.0040e6b0
push dword [ebp - 0x1a4]
mov ecx, dword [0x72ad00]
call fcn.004105a0
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 1
call fcn.0040ec40
jmp 0x40fa34
mov edi, dword [ebp - 0x1a8]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40fbba
lea esi, [edi + 0x84]
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x40fa71
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40fa65
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00407210
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x40fa8e
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40fa82
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00407210
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push str.WinTools
cmovae eax, dword [ebp - 0x40]
push str.Tools
push eax
lea eax, [ebp - 0x58]
push str._s_s_s_
push eax
call fcn.004cd64a
add esp, 0x14
lea ecx, [ebp - 0x40]
push eax
call fcn.00406c50
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40faf2
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fae8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff23
push edx
push ecx
call fcn.0042eb40
add esp, 8
push ebx
lea ecx, [ebp - 0x40]
call fcn.00406bb0
call fcn.004d34ff
test al, al
je 0x40fbba
mov eax, dword [0x72ad00]
test eax, eax
je 0x40fbba
cmp dword [eax + 4], 5
jl 0x40fbba
sub esp, 0xc
lea ecx, [ebp - 0x1a0]
push 0x11d
push str.CDoOwerModeInstall::OnDoDllInstall
push 5
call fcn.0040e840
mov ebx, eax
mov edx, str.ins_1:
mov byte [ebp - 4], 6
lea ecx, [ebx + 0x30]
call fcn.0040e6b0
cmp dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x40]
lea ecx, [ebx + 0x30]
cmovae edx, dword [ebp - 0x40]
call fcn.0040e6b0
mov edx, str._param:
lea ecx, [ebx + 0x30]
call fcn.0040e6b0
cmp dword [edi + 0x5c], 0x10
lea edx, [edi + 0x48]
jb 0x40fb77
mov edx, dword [edx]
lea ecx, [ebx + 0x30]
call fcn.0040e6b0
mov edx, str._path:
lea ecx, [ebx + 0x30]
call fcn.0040e6b0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
lea ecx, [ebx + 0x30]
cmovae edx, dword [ebp - 0x28]
call fcn.0040e6b0
mov ecx, dword [0x72ad00]
push ebx
call fcn.004105a0
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 1
call fcn.0040ec40
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40fd94
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40fd94
push 0x701bc0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a4], eax
test eax, eax
je 0x40fd94
push 0x3a8
sub esp, 0x18
lea edx, [edi + 0x48]
mov ecx, esp
push edx
call fcn.00406d70
lea eax, [ebp - 0x58]
push eax
call fcn.004cdff9
mov byte [ebp - 4], 7
xor ecx, ecx
mov eax, dword [ebp - 0x48]
mov esi, 2
inc eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042eba6
mov edx, dword [ebp - 0x48]
add esp, 0x24
mov ebx, eax
lea ecx, [edx + 1]
test ecx, ecx
je 0x40fc61
xor eax, eax
mov edi, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edx, dword [ebp - 0x48]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
lea edx, [edx*2 + 2]
mov ecx, ebx
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0040ee50
push 0x3a8
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00406d70
lea eax, [ebp - 0x70]
push eax
call fcn.004cdff9
mov byte [ebp - 4], 8
xor ecx, ecx
mov eax, dword [ebp - 0x60]
inc eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042eba6
mov edx, dword [ebp - 0x60]
add esp, 0x24
mov esi, eax
lea ecx, [edx + 1]
test ecx, ecx
je 0x40fccf
xor eax, eax
mov edi, esi
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edx, dword [ebp - 0x60]
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
lea edx, [edx*2 + 2]
mov ecx, esi
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.0040ee50
push esi
push ebx
call dword [ebp - 0x1a4]
push 2
push ebx
call fcn.0042eb40
push 2
push esi
call fcn.0042eb40
mov byte [ebp - 4], 7
add esp, 0x18
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x40fd42
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fd38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff28
push edx
push ecx
call fcn.0042eb40
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x40fd94
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fd8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff2d
push edx
push ecx
call fcn.0042eb40
add esp, 8
lea ecx, [ebp - 0x1c0]
call fcn.004d1907
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 9
mov ebx, dword [esi + 4]
mov esi, dword [esi]
cmp esi, ebx
je 0x40fe6f
push esi
lea ecx, [ebp - 0x58]
call fcn.00406d70
push 0
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov edi, esp
lea eax, [ebp - 0x58]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00406d70
push edi
call fcn.004cdeb5
add esp, 0x1c
lea ecx, [ebp - 0x1c0]
call fcn.004d1c8b
movzx eax, al
mov dword [ebp - 0x1ac], eax
test eax, eax
jne 0x40fe3b
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40fe2e
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fe24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff14
push edx
push ecx
call fcn.0042eb40
add esp, 8
add esi, 0x18
cmp esi, ebx
jne 0x40fdb3
jmp 0x40fe6f
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40fe6f
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fe65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff32
push edx
push ecx
call fcn.0042eb40
add esp, 8
lea ecx, [ebp - 0x1c0]
call fcn.004d1aae
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40feae
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fea4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff37
push edx
push ecx
call fcn.0042eb40
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x40fef0
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fee6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff3c
push edx
push ecx
call fcn.0042eb40
add esp, 8
mov al, byte [ebp - 0x1ac]
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.0042e4f5
mov esp, ebp
pop ebp
ret 8
call fcn.0050d9ce
call fcn.0050d9ce
call fcn.0050d9ce
call fcn.0050d9ce
call fcn.0050d9ce
call fcn.0050d9ce
call fcn.0050d9ce
call fcn.0050d9ce
call fcn.0050d9ce
int3