Function at 0x412200
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49baa1
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
xor edi, edi
push edi
lea esi, [esp + 0x20]
call fcn.0040cb40
add esp, 4
mov esi, eax
mov dword [esp + 0x9c], edi
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x412262
mov eax, dword [eax - 0xc]
push eax
push esi
call fcn.00403640
mov eax, dword [esi]
xor ecx, ecx
mov word [esp + 0x3c], cx
mov ebx, 7
mov ecx, eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x412280
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x40]
call fcn.0040ca50
mov byte [esp + 0x9c], 1
xor edx, edx
mov word [esp + 0x20], dx
or ebp, 0xffffffff
push edi
mov eax, ebp
mov ecx, esi
lea edx, [esp + 0x24]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
call fcn.0040c720
mov byte [esp + 0x9c], 3
cmp dword [esp + 0x50], 8
jb 0x4122dd
mov eax, dword [esp + 0x3c]
push eax
call fcn.0047fe1e
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], cx
mov byte [esp + 0x9c], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412313
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x16
mov eax, str.GoogleInputService.exe
lea esi, [esp + 0x5c]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], cx
call fcn.0040ca50
lea edx, [esp + 0x74]
push edx
mov ebx, esi
lea ecx, [esp + 0x24]
mov byte [esp + 0xa0], 5
call fcn.00475170
mov ecx, eax
push 0
mov eax, ebp
lea edx, [esp + 0x24]
mov byte [esp + 0xa0], 6
call fcn.0040c720
mov esi, 8
mov byte [esp + 0x9c], 5
cmp dword [esp + 0x88], esi
jb 0x412384
mov eax, dword [esp + 0x74]
push eax
call fcn.0047fe1e
add esp, 4
xor ecx, ecx
mov ebx, 7
mov byte [esp + 0x9c], 4
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], 0
mov word [esp + 0x74], cx
cmp dword [esp + 0x6c], esi
jb 0x4123bd
mov edx, dword [esp + 0x58]
push edx
call fcn.0047fe1e
add esp, 4
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], esi
jae 0x4123cb
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4123f7
mov dword [esp + 0x9c], ebp
cmp dword [esp + 0x34], esi
jb 0x4123f0
mov eax, dword [esp + 0x20]
push eax
call fcn.0047fe1e
add esp, 4
xor al, al
jmp 0x41255b
lea ecx, [esp + 0x14]
push ecx
mov ecx, str._RegServer
call fcn.00402450
mov byte [esp + 0x9c], bl
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x34], esi
jae 0x41241b
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
push edx
call fcn.00402450
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040ef50
add esp, 8
cmp eax, ebp
mov eax, dword [esp + 0x18]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41245b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x9c], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412482
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4124ab
mov dword [esp + 0x9c], ebp
cmp dword [esp + 0x34], esi
jb 0x4123f0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0047fe1e
add esp, 4
xor al, al
jmp 0x41255b
lea edx, [esp + 0x18]
push edx
mov ecx, str._Service
call fcn.00402450
mov byte [esp + 0x9c], 8
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x34], esi
jae 0x4124d0
lea ecx, [esp + 0x20]
lea eax, [esp + 0x14]
push eax
call fcn.00402450
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040ef50
add esp, 8
cmp eax, ebp
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x9c], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412537
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x9c], ebp
test bl, bl
jne 0x41248d
cmp dword [esp + 0x34], esi
jb 0x412559
mov edx, dword [esp + 0x20]
push edx
call fcn.0047fe1e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0047fe29
add esp, 0x8c
ret