Function at 0x415b50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fcc8
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x4786a0]
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 [0x478034]
mov edx, dword [eax + 0xc]
mov ecx, 0x478034
call edx
add eax, 0x10
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 2
mov eax, dword [0x478034]
mov edx, dword [eax + 0xc]
mov ecx, 0x478034
call edx
add eax, 0x10
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 3
mov eax, dword [0x478034]
mov edx, dword [eax + 0xc]
mov ecx, 0x478034
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.00420540
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x11c]
xor ebx, ebx
cmp dword [ebp - 0x3c], eax
je 0x415c71
cmp eax, ebx
je 0x415c71
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 0x415ca0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415ca0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00429690
cmp dword [ebp - 0x10c], ebx
jne 0x416320
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.00404510
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.00429370
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.00429370
lea ebx, [ebp - 0x118]
mov byte [ebp - 4], 0xa
call fcn.00423430
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 0x416278
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 0x415e31
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 0x415e42
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x80]
call fcn.00429690
lea ecx, [ebp - 0x80]
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0xd
call fcn.00423560
mov edx, eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x134]
add eax, dword [ebp - 0x124]
lea ecx, [ebp - 0xec]
call fcn.004235a0
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], edi
jb 0x415e96
mov esi, dword [eax]
jmp 0x415e98
mov esi, eax
mov edx, dword [0x478034]
mov eax, dword [edx + 0xc]
mov ecx, 0x478034
call eax
add eax, 0x10
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 0x10
cmp esi, ebx
je 0x415edd
test esi, 0xffff0000
jne 0x415ee1
movzx edi, si
call fcn.004014d0
cmp eax, ebx
je 0x415f06
push eax
mov eax, edi
lea edi, [ebp - 0x110]
call fcn.00401290
jmp 0x415f06
xor eax, eax
jmp 0x415ef5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415ee6
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 0x415f22
mov edx, dword [ebp - 0xec]
push edx
call fcn.0044543c
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 0x415f53
mov ecx, dword [ebp - 0x108]
push ecx
call fcn.0044543c
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 0x415f7d
mov eax, dword [ebp - 0x80]
push eax
call fcn.0044543c
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.0041e500
add esp, 8
mov byte [ebp - 4], 0x15
mov edi, dword [eax]
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x415fbd
test eax, eax
je 0x415fbd
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 0x415fe3
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x58]
call fcn.00429690
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 0x416023
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x4160c8
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x138]
push edx
mov ebx, str.0win64
call fcn.0041e500
add esp, 8
mov byte [ebp - 4], 0x16
mov edi, dword [eax]
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x41605f
test eax, eax
je 0x41605f
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 0x416080
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x58]
call fcn.00429690
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 0x4160c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x4161ee
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x164], ecx
lea esi, [ebp - 0x180]
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x160], 0x46cea0
call fcn.004044c0
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.0041ed70
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x17c]
test eax, eax
je 0x416124
push eax
call fcn.0044543c
add esp, 4
cmp dword [ebp - 0x15c], 1
jne 0x4161ee
mov esi, dword [ebp - 0x158]
test esi, esi
jne 0x41613f
xor eax, eax
jmp 0x416153
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416144
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 0x4161ee
push ecx
mov eax, esp
mov dword [ebp - 0x168], esp
push eax
mov ecx, 0x46ce9c
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.004218e0
add eax, 0x10
lea ecx, [ebp - 0x118]
mov dword [edi], eax
mov bl, 0x14
push ecx
mov byte [ebp - 4], bl
call fcn.00419270
mov byte [ebp - 4], 0x19
mov edi, dword [ebp - 0x120]
mov ecx, eax
call fcn.0041fd20
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 0x4161ee
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 0x416214
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 0x416227
cmp dword [ebp - 0x64], eax
je 0x416227
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x44], 8
jb 0x416239
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0044543c
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 0x415e00
mov esi, 8
cmp dword [ebp - 0xb0], esi
jb 0x41629a
mov ecx, dword [ebp - 0xc4]
push ecx
call fcn.0044543c
mov edi, dword [ebp - 0x134]
add esp, 4
cmp dword [ebp - 0x88], esi
jb 0x4162b7
mov edx, dword [ebp - 0x9c]
push edx
call fcn.0044543c
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 0x416316
mov ebx, dword [ebp - 0x130]
cmp edi, ebx
je 0x41630d
nop
cmp dword [edi + 0x14], 8
jb 0x4162f1
mov eax, dword [edi]
push eax
call fcn.0044543c
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 0x4162e0
mov edi, dword [ebp - 0x134]
push edi
call fcn.0044543c
add esp, 4
mov edi, dword [ebp - 0x120]
xor ebx, ebx
jmp 0x416325
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 0x41634b
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 0x41635e
cmp dword [ebp - 0x3c], eax
je 0x41635e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
jb 0x416370
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044543c
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 0x41638f
push eax
call fcn.0044543c
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 0x4163b5
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 0x4163db
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 0x416401
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 0x416423
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.00445447
mov esp, ebp
pop ebp
ret 4