Function at 0x418990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4698f8
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x4846a0]
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 edi, ecx
xor esi, esi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x140], esi
mov ebx, 1
mov dword [ebp - 4], ebx
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 2
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 3
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [ebp - 0x13c], eax
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x150], esi
mov eax, SysReAllocStringLen
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov ebx, 7
xor eax, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], ax
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, str.TypeLib_
mov byte [ebp - 4], 6
call fcn.00401110
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x11c]
call fcn.004249d0
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x11c]
xor ebx, ebx
cmp dword [ebp - 0x3c], eax
je 0x418ab1
cmp eax, ebx
je 0x418ab1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
push edx
push 0x20019
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10c], eax
mov eax, esi
mov dword [ebp - 0x34], 0x20019
lea edx, [eax + 2]
jmp 0x418ae0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418ae0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00430290
cmp dword [ebp - 0x10c], ebx
jne 0x419160
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub ecx, eax
neg ecx
sbb ecx, ecx
and ecx, eax
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0x10c], ecx
call fcn.00404880
mov esi, 7
xor ecx, ecx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xb4], ebx
mov word [ebp - 0xc4], cx
lea edx, [ebp - 0x134]
push edx
mov byte [ebp - 4], 0xa
sub esp, 0x28
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea edi, [eax + 0xc]
mov dword [ebp - 0x118], esp
xor eax, eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push ebx
lea ecx, [ebp - 0xc4]
mov word [edi], ax
push ecx
or eax, 0xffffffff
call fcn.0042ff70
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xa8]
sub esp, 0x28
mov eax, esp
mov dword [eax], edx
mov ecx, dword [ebp - 0xa4]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0xa0]
mov dword [eax + 8], edx
lea edi, [eax + 0xc]
mov dword [ebp - 0x138], esp
xor eax, eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push ebx
lea ecx, [ebp - 0x9c]
mov word [edi], ax
push ecx
or eax, 0xffffffff
call fcn.0042ff70
lea ebx, [ebp - 0x118]
mov byte [ebp - 4], 0xa
call fcn.004294a0
mov ecx, dword [ebp - 0x130]
mov edi, dword [ebp - 0x134]
sub ecx, edi
mov eax, 0x92492493
imul ecx
xor ebx, ebx
add edx, ecx
add esp, 0x54
sar edx, 4
mov dword [ebp - 0x10c], ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4190b8
mov dword [ebp - 0x124], ebx
lea esp, [esp]
mov eax, dword [ebp - 0x3c]
mov ecx, 7
xor edx, edx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], dx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x30]
mov edi, 8
cmp dword [ebp - 0x1c], edi
jae 0x418c71
lea eax, [ebp - 0x30]
mov dword [ebp - 0x6c], ecx
xor ecx, ecx
mov word [ebp - 0x80], cx
mov ecx, eax
mov dword [ebp - 0x70], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x418c82
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x80]
call fcn.00430290
lea ecx, [ebp - 0x80]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0xd
call fcn.004295d0
mov edx, eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x134]
add eax, dword [ebp - 0x124]
lea ecx, [ebp - 0xec]
call fcn.00429610
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], edi
jb 0x418cd6
mov esi, dword [eax]
jmp 0x418cd8
mov esi, eax
mov edx, dword [0x484034]
mov eax, dword [edx + 0xc]
mov ecx, 0x484034
call eax
add eax, 0x10
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 0x10
cmp esi, ebx
je 0x418d1d
test esi, 0xffff0000
jne 0x418d21
movzx edi, si
call fcn.004014d0
cmp eax, ebx
je 0x418d46
push eax
mov eax, edi
lea edi, [ebp - 0x110]
call fcn.00401290
jmp 0x418d46
xor eax, eax
jmp 0x418d35
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418d26
sub eax, edx
sar eax, 1
push esi
lea ecx, [ebp - 0x110]
push ecx
mov ebx, eax
call fcn.00401330
xor ebx, ebx
mov edi, 8
cmp dword [ebp - 0xd8], edi
jb 0x418d62
mov edx, dword [ebp - 0xec]
push edx
call fcn.0044ebcc
add esp, 4
mov esi, 7
xor eax, eax
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xdc], ebx
mov word [ebp - 0xec], ax
cmp dword [ebp - 0xf4], edi
jb 0x418d93
mov ecx, dword [ebp - 0x108]
push ecx
call fcn.0044ebcc
add esp, 4
xor edx, edx
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xf8], ebx
mov word [ebp - 0x108], dx
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x6c], edi
jb 0x418dbd
mov eax, dword [ebp - 0x80]
push eax
call fcn.0044ebcc
add esp, 4
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x144]
mov dword [ebp - 0x70], ebx
xor ecx, ecx
push eax
mov ebx, str.0win32
mov dword [ebp - 0x6c], esi
mov word [ebp - 0x80], cx
call fcn.00422010
add esp, 8
mov byte [ebp - 4], 0x15
mov edi, dword [eax]
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x418dfd
test eax, eax
je 0x418dfd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x64]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x60]
push ecx
push 0x20019
push 0
push edi
push edx
call esi
mov ebx, eax
mov eax, edi
mov dword [ebp - 0x5c], 0x20019
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418e23
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x58]
call fcn.00430290
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x144]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418e63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x418f08
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x138]
push edx
mov ebx, str.0win64
call fcn.00422010
add esp, 8
mov byte [ebp - 4], 0x16
mov edi, dword [eax]
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x418e9f
test eax, eax
je 0x418e9f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
push eax
push 0x20019
push 0
push edi
push ecx
call esi
mov esi, eax
mov eax, edi
mov dword [ebp - 0x5c], 0x20019
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418ec0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x58]
call fcn.00430290
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x138]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418f00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x41902e
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x164], ecx
lea esi, [ebp - 0x180]
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x160], 0x4776c8
call fcn.00404830
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x180]
lea eax, [ebp - 0x17c]
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x15c], edx
call fcn.00422a20
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x17c]
test eax, eax
je 0x418f64
push eax
call fcn.0044ebcc
add esp, 4
cmp dword [ebp - 0x15c], 1
jne 0x41902e
mov esi, dword [ebp - 0x158]
test esi, esi
jne 0x418f7f
xor eax, eax
jmp 0x418f93
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418f84
sub eax, edx
sar eax, 1
push esi
lea ecx, [ebp - 0x114]
push ecx
mov ebx, eax
call fcn.00401330
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41902e
push ecx
mov eax, esp
mov dword [ebp - 0x168], esp
push eax
mov ecx, 0x472154
call fcn.00401110
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x114]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x16c], esp
mov edi, esp
call fcn.00426710
add eax, 0x10
lea ecx, [ebp - 0x118]
mov dword [edi], eax
mov bl, 0x14
push ecx
mov byte [ebp - 4], bl
call fcn.0041c870
mov byte [ebp - 4], 0x19
mov edi, dword [ebp - 0x120]
mov ecx, eax
call fcn.00424090
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41902e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x110]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419054
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x419067
cmp dword [ebp - 0x64], eax
je 0x419067
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x44], 8
jb 0x419079
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0044ebcc
add esp, 4
mov ecx, dword [ebp - 0x130]
mov edi, dword [ebp - 0x134]
mov esi, dword [ebp - 0x10c]
add dword [ebp - 0x124], 0x1c
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
xor ebx, ebx
mov dword [ebp - 0x10c], esi
cmp esi, eax
jb 0x418c40
mov esi, 8
cmp dword [ebp - 0xb0], esi
jb 0x4190da
mov ecx, dword [ebp - 0xc4]
push ecx
call fcn.0044ebcc
mov edi, dword [ebp - 0x134]
add esp, 4
cmp dword [ebp - 0x88], esi
jb 0x4190f7
mov edx, dword [ebp - 0x9c]
push edx
call fcn.0044ebcc
mov edi, dword [ebp - 0x134]
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
cmp edi, ebx
je 0x419156
mov ebx, dword [ebp - 0x130]
cmp edi, ebx
je 0x41914d
nop
cmp dword [edi + 0x14], 8
jb 0x419131
mov eax, dword [edi]
push eax
call fcn.0044ebcc
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], 0
mov word [edi], cx
add edi, 0x1c
cmp edi, ebx
jne 0x419120
mov edi, dword [ebp - 0x134]
push edi
call fcn.0044ebcc
add esp, 4
mov edi, dword [ebp - 0x120]
xor ebx, ebx
jmp 0x419165
mov esi, 7
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41918b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x41919e
cmp dword [ebp - 0x3c], eax
je 0x41919e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
jb 0x4191b0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044ebcc
add esp, 4
mov eax, dword [ebp - 0x158]
xor edx, edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
cmp eax, ebx
je 0x4191cf
push eax
call fcn.0044ebcc
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x13c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4191f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x148]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41921b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x114]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419241
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419263
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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.0044ebd7
mov esp, ebp
pop ebp
ret 4