Function at 0x40dbe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66e28e
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x70d06c]
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 - 0x1ac], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push 0x3a8
sub esp, 0x18
mov dword [ebp - 4], 0
mov eax, esp
push 0
push 0x1c
push eax
call fcn.004cb7e9
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
call fcn.004ca7b9
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004c9d1a
add esp, 0x24
test eax, eax
jne 0x40dcb6
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x6f561c
cmp eax, 1
jb 0x40dc9f
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.005015c0
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40dcb6
mov byte [ebp - 0x1a4], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x1a4]
push 1
call fcn.00407130
cmp dword [ebx + 0x68], 0x10
lea edi, [ebx + 0x54]
mov eax, edi
jb 0x40dcc3
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405e20
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 0x6f56b4
push 0xffffffffffffffff
push esi
push eax
call fcn.0040feb0
mov ecx, eax
add esp, 0x18
cmp ecx, 0xffffffff
je 0x40dd6d
cmp esi, ecx
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0xf
cmovb ecx, esi
mov byte [ebp - 0x40], 0
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.004064f0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405f30
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40dd6d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dd63
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e341
push edx
push ecx
call fcn.00429d60
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.004c9d1a
add esp, 4
test eax, eax
jne 0x40ddcb
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x6f561c
cmp eax, 1
jb 0x40ddb4
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.005015c0
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40ddcb
mov byte [ebp - 0x1a4], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x1a4]
push 1
call fcn.00407130
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 0x40de96
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.00406050
lea eax, [ebp - 0x40]
push eax
call fcn.004ca438
add esp, 0x20
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x40de1b
mov eax, dword [eax]
push eax
call fcn.004cb687
mov byte [ebp - 4], 2
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40de62
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40de58
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e346
push edx
push ecx
call fcn.00429d60
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x40de92
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 0x40dea9
mov edi, dword [edi]
push 0
push 0
push 0x6f5628
push eax
push edi
call fcn.004e1a00
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
call fcn.004064f0
cmp dword [ebx + 0x2c], 0x10
lea ecx, [ebx + 0x18]
jb 0x40dedc
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebp - 0x44]
mov eax, esi
mov edi, dword [ebx + 0x28]
mov edx, dword [ebp - 0x48]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x40df11
lea eax, [edi + edx]
cmp esi, 0x10
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
lea esi, [eax + edx]
push esi
call fcn.005015c0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x40df27
mov byte [ebp - 0x1a4], 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0x1a4]
push edi
call fcn.00407130
call fcn.004cf5d5
test al, al
je 0x40dfe6
mov eax, dword [0x71dcfc]
test eax, eax
je 0x40dfe6
cmp dword [eax + 4], 5
jl 0x40dfe6
sub esp, 0xc
lea ecx, [ebp - 0x1a0]
push 0x124
push str.CDoOwerModeInstall::OnDoDllInstall
push 5
call fcn.0040d050
mov edi, eax
mov edx, str.ins_:
mov byte [ebp - 4], 5
lea ecx, [edi + 0x30]
call fcn.0040cec0
cmp dword [ebp - 0x44], 0x10
lea edx, [ebp - 0x58]
lea ecx, [edi + 0x30]
cmovae edx, dword [ebp - 0x58]
call fcn.0040cec0
mov edx, str._param:
lea ecx, [edi + 0x30]
call fcn.0040cec0
cmp dword [ebx + 0x44], 0x10
lea edx, [ebx + 0x30]
jb 0x40dfa3
mov edx, dword [edx]
lea ecx, [edi + 0x30]
call fcn.0040cec0
mov edx, str._path:
lea ecx, [edi + 0x30]
call fcn.0040cec0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
lea ecx, [edi + 0x30]
cmovae edx, dword [ebp - 0x28]
call fcn.0040cec0
mov ecx, dword [0x71dcfc]
push edi
call fcn.0040e8d0
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 1
call fcn.0040d450
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40e1c0
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40e1c0
push 0x6f5630
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a4], eax
test eax, eax
je 0x40e1c0
push 0x3a8
sub esp, 0x18
lea edx, [ebx + 0x30]
mov ecx, esp
push edx
call fcn.00406050
lea eax, [ebp - 0x40]
push eax
call fcn.004ca438
mov byte [ebp - 4], 6
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov esi, 2
inc eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00429d96
mov edx, dword [ebp - 0x30]
add esp, 0x24
mov ebx, eax
lea ecx, [edx + 1]
test ecx, ecx
je 0x40e08d
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 - 0x30]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
lea edx, [edx*2 + 2]
mov ecx, ebx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0040d660
push 0x3a8
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00406050
lea eax, [ebp - 0x70]
push eax
call fcn.004ca438
mov byte [ebp - 4], 7
xor ecx, ecx
mov eax, dword [ebp - 0x60]
inc eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00429d96
mov edx, dword [ebp - 0x60]
add esp, 0x24
mov esi, eax
lea ecx, [edx + 1]
test ecx, ecx
je 0x40e0fb
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.0040d660
push esi
push ebx
call dword [ebp - 0x1a4]
push 2
push ebx
call fcn.00429d60
push 2
push esi
call fcn.00429d60
mov byte [ebp - 4], 6
add esp, 0x18
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x40e16e
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e164
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e34b
push edx
push ecx
call fcn.00429d60
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x40e1c0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e1b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e350
push edx
push ecx
call fcn.00429d60
add esp, 8
lea ecx, [ebp - 0x1c0]
call fcn.004cd9dd
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 8
mov ebx, dword [esi + 4]
mov esi, dword [esi]
cmp esi, ebx
je 0x40e29c
nop
push esi
lea ecx, [ebp - 0x40]
call fcn.00406050
push 0
sub esp, 0x18
mov byte [ebp - 4], 9
mov edi, esp
lea eax, [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00406050
push edi
call fcn.004ca2f4
add esp, 0x1c
lea ecx, [ebp - 0x1c0]
call fcn.004cdd61
movzx eax, al
mov dword [ebp - 0x1ac], eax
test eax, eax
jne 0x40e268
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40e25b
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e251
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e341
push edx
push ecx
call fcn.00429d60
add esp, 8
add esi, 0x18
cmp esi, ebx
jne 0x40e1e0
jmp 0x40e29c
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40e29c
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e292
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e355
push edx
push ecx
call fcn.00429d60
add esp, 8
lea ecx, [ebp - 0x1c0]
call fcn.004cdb84
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40e2db
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e2d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e35a
push edx
push ecx
call fcn.00429d60
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x40e31d
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e313
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e35f
push edx
push ecx
call fcn.00429d60
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.004296e5
mov esp, ebp
pop ebp
ret 8
call fcn.005059c0
call fcn.005059c0
call fcn.005059c0
call fcn.005059c0
call fcn.005059c0
call fcn.005059c0
call fcn.005059c0
int3