Function at 0x412ff0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4af9e7
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4d25ac]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x34], eax
xor ebp, ebp
mov dword [esp + 0x98], ebp
xor ecx, ecx
push 0x21
mov eax, str.CIGearedToolbarHelper::Init__path
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], cx
call fcn.00401f30
mov edx, esi
push edx
lea ecx, [esp + 0xa8]
mov byte [esp + 0x9c], 1
call fcn.004035d0
mov ebx, 8
add esp, 4
mov byte [esp + 0x98], 0
cmp dword [esp + 0x30], ebx
jb 0x413096
mov eax, dword [esp + 0x1c]
push eax
call fcn.00491101
add esp, 4
push 0x4b5f6c
lea edi, [esp + 0x58]
call fcn.004074f0
push str.ProgramFiles
lea edi, [esp + 0x78]
mov byte [esp + 0xa0], 2
call fcn.004074f0
add esp, 8
push 0x12
mov eax, str.iGearedHelper.dll
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 3
call fcn.00403430
push 0x12
mov eax, str.iGearedHelper.dll
mov ecx, edi
call fcn.00403430
mov edi, 7
xor ecx, ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], cx
mov byte [esp + 0x98], 4
mov eax, dword [esp + 0xa8]
cmp dword [esp + 0xbc], ebx
jae 0x413116
lea eax, [esp + 0xa8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x41317c
xor edx, edx
push 0x34
mov eax, str.CIGearedToolbarHelper::Init__exists_in_original_path
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], dx
call fcn.00401f30
mov eax, esi
push eax
mov byte [esp + 0x9c], 5
call fcn.00403780
add esp, 4
mov byte [esp + 0x98], 4
cmp dword [esp + 0x30], ebx
jb 0x413170
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00491101
add esp, 4
lea eax, [esp + 0xa4]
jmp 0x41323e
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebx
jae 0x41318a
lea eax, [esp + 0x58]
push eax
call esi
test eax, eax
je 0x4131e4
xor edx, edx
push 0x2c
mov eax, str.CIGearedToolbarHelper::Init___exists_in_temp
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], dx
call fcn.00401f30
mov eax, esi
push eax
mov byte [esp + 0x9c], 6
call fcn.00403780
add esp, 4
mov byte [esp + 0x98], 4
cmp dword [esp + 0x30], ebx
jb 0x4131de
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00491101
add esp, 4
lea eax, [esp + 0x54]
jmp 0x41323e
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], ebx
jae 0x4131f5
lea eax, [esp + 0x74]
push eax
call esi
test eax, eax
je 0x41324a
mov eax, str.CIGearedToolbarHelper::Init__exists_in_prog_files
lea ecx, [esp + 0x18]
call fcn.00401fe0
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x9c], 7
call fcn.00403780
add esp, 4
mov byte [esp + 0x98], 4
cmp dword [esp + 0x30], ebx
jb 0x41323a
mov eax, dword [esp + 0x1c]
push eax
call fcn.00491101
add esp, 4
lea eax, [esp + 0x70]
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x40]
call fcn.00401c20
cmp dword [esp + 0x4c], ebp
jne 0x413327
xor ecx, ecx
push 0x38
mov eax, str.CIGearedToolbarHelper::Init__file_does_not_exists._quit.
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], cx
call fcn.00401f30
mov edx, esi
push edx
mov byte [esp + 0x9c], bl
call fcn.00403780
add esp, 4
cmp dword [esp + 0x30], ebx
jb 0x413298
mov eax, dword [esp + 0x1c]
push eax
call fcn.00491101
add esp, 4
cmp dword [esp + 0x50], ebx
jb 0x4132ab
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], dx
cmp dword [esp + 0x88], ebx
jb 0x4132d0
mov eax, dword [esp + 0x74]
push eax
call fcn.00491101
add esp, 4
xor ecx, ecx
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebp
mov word [esp + 0x74], cx
cmp dword [esp + 0x6c], ebx
jb 0x4132f8
mov edx, dword [esp + 0x58]
push edx
call fcn.00491101
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], ax
cmp dword [esp + 0xbc], ebx
jb 0x413320
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.00491101
add esp, 4
xor al, al
jmp 0x4133d6
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x413335
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [esp + 0x34]
cmp eax, ebp
setne byte [esp + 0x17]
mov dword [edx + 0x20], eax
cmp dword [esp + 0x50], ebx
jb 0x41335d
mov eax, dword [esp + 0x3c]
push eax
call fcn.00491101
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], cx
cmp dword [esp + 0x88], ebx
jb 0x413382
mov edx, dword [esp + 0x74]
push edx
call fcn.00491101
add esp, 4
xor eax, eax
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebp
mov word [esp + 0x74], ax
cmp dword [esp + 0x6c], ebx
jb 0x4133aa
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], dx
cmp dword [esp + 0xbc], ebx
jb 0x4133d2
mov eax, dword [esp + 0xa8]
push eax
call fcn.00491101
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0049110c
add esp, 0x88
ret 0x20