Function at 0x411920
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49f003
mov eax, dword fs:[0]
push eax
sub esp, 0x570
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x568], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x580]
mov dword fs:[0], eax
xor esi, esi
push 0x206
lea ecx, [esp + 0x372]
xor eax, eax
push esi
mov dword [esp + 0x24], esi
push ecx
mov word [esp + 0x378], ax
call fcn.00485710
add esp, 0xc
push 0x206
lea eax, [esp + 0x16a]
xor edx, edx
push esi
push eax
mov word [esp + 0x170], dx
call fcn.00485710
add esp, 0xc
lea ecx, [esp + 0x36c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x411c43
lea edx, [esp + 0x2c]
push edx
call fcn.00475b90
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add esp, 4
lea edx, [esp + 0x164]
push edx
push ecx
mov dword [esp + 0x30], eax
push str.google_ime_installer_temp
lea eax, [esp + 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x411c43
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411a5d
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x168]
call fcn.00402450
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x58c], esi
call fcn.0040e5b0
mov dword [esp + 0x58c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411a5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0041e820
lea edx, [esp + 0x14]
push edx
mov ecx, 0x4a8af4
mov dword [esp + 0x58c], 1
call fcn.00402450
lea eax, [esp + 0x14]
push eax
mov ecx, 0x76
lea edi, [esp + 0x38]
mov byte [esp + 0x58c], 2
call fcn.0041ead0
test al, al
mov byte [esp + 0x588], 1
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411ac9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4121e2
lea edx, [esp + 0x14]
push edx
mov ecx, str.pack_file_items.manifest
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
call fcn.00402450
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x590], 3
call fcn.0041ecd0
test al, al
mov byte [esp + 0x588], 1
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411b34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4121e2
mov eax, 4
lea edx, [esp + 0x104]
lea ecx, [esp + 0x124]
mov dword [esp + 0xec], vtable.ime_goopy::PackFileItemsProto.0
mov dword [esp + 0xf0], esi
mov dword [esp + 0xf4], edx
mov dword [esp + 0xf8], esi
mov dword [esp + 0xfc], esi
mov dword [esp + 0x100], eax
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], esi
mov dword [esp + 0x11c], esi
mov dword [esp + 0x120], eax
mov dword [esp + 0x138], esi
mov dword [esp + 0x134], esi
mov dword [esp + 0x13c], esi
mov byte [esp + 0x588], al
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], esi
mov byte [esp + 0x84], bl
call fcn.00402300
lea ecx, [esp + 0x7c]
push ecx
lea esi, [esp + 0xf0]
mov byte [esp + 0x58c], 5
call fcn.00426a20
add esp, 4
test al, al
lea ecx, [esp + 0x7c]
sete bl
mov byte [esp + 0x588], 4
call fcn.0047d500
test bl, bl
je 0x411c69
lea ecx, [esp + 0xec]
mov byte [esp + 0x588], 1
call fcn.0047c0e0
lea edx, [esp + 0x34]
mov dword [esp + 0x588], 0xffffffff
push edx
call fcn.0041e9b0
xor al, al
mov ecx, dword [esp + 0x580]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x568]
xor ecx, esp
call fcn.0047fe29
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xf8], 0
mov dword [esp + 0x14], 0
jbe 0x411f94
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0x14]
mov edi, dword [eax + ecx*4]
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test al, al
je 0x412180
mov eax, dword [edi + 8]
test eax, eax
jne 0x411cae
mov ecx, dword [0x4c0548]
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 8]
lea edx, [esp + 0x148]
push edx
call fcn.0040bf70
add esp, 4
lea eax, [esp + 0x164]
lea ecx, [esp + 0x60]
mov byte [esp + 0x588], 7
call fcn.0040e570
mov byte [esp + 0x588], 8
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x411cf0
mov eax, dword [0x4c0548]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x10], 0
je 0x411d56
lea ecx, [esp + 0x60]
push ecx
mov eax, 0x4a8afc
call fcn.00410f00
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x411d18
mov edx, dword [0x4c0548]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x10]
lea eax, [esp + 0xd0]
push eax
call fcn.0040bf70
add esp, 4
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x68]
mov byte [esp + 0x590], 9
call fcn.00411080
lea esi, [esp + 0xd0]
mov byte [esp + 0x588], 8
call fcn.00402420
mov eax, dword [edi + 8]
test eax, eax
jne 0x411d66
mov ecx, dword [0x4c0548]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0xc]
cmp dword [eax + 0x10], 0
je 0x411dcb
lea edx, [esp + 0x60]
push edx
mov eax, 0x4a8afc
call fcn.00410f00
mov eax, dword [edi + 8]
test eax, eax
jne 0x411d8d
mov eax, dword [0x4c0548]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0xc]
lea edx, [esp + 0xb4]
push edx
call fcn.0040bf70
add esp, 4
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x68]
mov byte [esp + 0x590], 0xa
call fcn.00411080
lea esi, [esp + 0xb4]
mov byte [esp + 0x588], 8
call fcn.00402420
mov eax, dword [esp + 0x60]
mov esi, 8
cmp dword [esp + 0x74], esi
jae 0x411dde
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411e17
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x74], esi
jae 0x411df7
lea ecx, [esp + 0x60]
lea eax, [esp + 0x24]
push eax
call fcn.00402450
or dword [esp + 0x1c], 1
lea esi, [esp + 0x24]
call fcn.0040e9d0
test al, al
jne 0x411e17
mov bl, 1
jmp 0x411e19
xor bl, bl
test byte [esp + 0x1c], 1
je 0x411e2e
and dword [esp + 0x1c], 0xfffffffe
lea eax, [esp + 0x24]
call fcn.00401ce0
test bl, bl
jne 0x4121a9
mov eax, dword [edi + 8]
test eax, eax
jne 0x411e46
mov ecx, dword [0x4c0548]
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0x7c]
push edx
call fcn.0040bf70
add esp, 4
mov esi, eax
push 0x4a8afc
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0xbc]
push ecx
mov byte [esp + 0x594], 0xb
call fcn.004131d0
add esp, 0xc
mov ecx, eax
lea edx, [esp + 0x98]
push edx
mov eax, esi
mov byte [esp + 0x58c], 0xc
call fcn.004132c0
add esp, 4
lea esi, [esp + 0xb4]
mov byte [esp + 0x588], 0xe
call fcn.00402420
lea esi, [esp + 0x7c]
mov byte [esp + 0x588], 0xf
call fcn.00402420
mov ecx, dword [esp + 0x98]
mov esi, 8
cmp dword [esp + 0xac], esi
jae 0x411ed7
lea ecx, [esp + 0x98]
lea eax, [esp + 0x2c]
push eax
call fcn.00402450
mov byte [esp + 0x588], 0x10
mov ecx, dword [esp + 0x148]
cmp dword [esp + 0x15c], esi
jae 0x411f00
lea ecx, [esp + 0x148]
lea edx, [esp + 0x18]
push edx
call fcn.00402450
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x594], 0x11
call fcn.0041ed80
test al, al
lea eax, [esp + 0x18]
sete bl
call fcn.00401ce0
lea eax, [esp + 0x2c]
call fcn.00401ce0
lea esi, [esp + 0x98]
mov byte [esp + 0x588], 8
call fcn.00402420
lea esi, [esp + 0x60]
mov byte [esp + 0x588], 7
call fcn.00402420
lea esi, [esp + 0x148]
mov byte [esp + 0x588], 4
call fcn.00402420
test bl, bl
jne 0x411c1a
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0xf8]
jb 0x411c7f
push str..pak
push str.installer_resources
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0xa4]
push 0x4a8b00
push ecx
call fcn.00474110
add esp, 0x14
mov esi, 8
mov byte [esp + 0x588], 0x12
cmp dword [eax + 0x14], esi
jb 0x411fcf
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
mov ecx, eax
call fcn.00402450
mov byte [esp + 0x588], 0x14
cmp dword [esp + 0xac], esi
jb 0x411ffc
mov eax, dword [esp + 0x98]
push eax
call fcn.0047fe1e
add esp, 4
xor ecx, ecx
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], cx
call fcn.00476520
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], 1
jle 0x41203d
mov edx, dword [eax - 0xc]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00403640
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x7c]
call fcn.0040e570
lea ecx, [esp + 0xd0]
push ecx
mov bl, 0x15
lea ecx, [esp + 0x80]
mov byte [esp + 0x58c], bl
call fcn.0040be80
add esp, 4
mov edx, eax
lea esi, [esp + 0xb4]
mov byte [esp + 0x588], 0x16
call fcn.004765e0
mov esi, 0x10
cmp dword [esp + 0xc8], esi
jb 0x41209a
mov edx, dword [esp + 0xb4]
push edx
call fcn.0047fe1e
add esp, 4
xor edi, edi
mov byte [esp + 0x588], bl
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], edi
mov byte [esp + 0xb4], 0
cmp dword [esp + 0xe4], esi
jb 0x4120d6
mov eax, dword [esp + 0xd0]
push eax
call fcn.0047fe1e
add esp, 4
mov byte [esp + 0x588], 0x14
cmp dword [esp + 0x90], 8
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], edi
mov byte [esp + 0xd0], 0
jb 0x41210f
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0047fe1e
add esp, 4
mov byte [esp + 0x588], 4
mov eax, dword [esp + 0x20]
xor edx, edx
add eax, 0xfffffff0
mov word [esp + 0x7c], dx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412150
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xec]
mov byte [esp + 0x588], 1
call fcn.0047c0e0
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x58c], 0xffffffff
call fcn.0041e9b0
mov al, 1
jmp 0x411c45
lea ecx, [esp + 0xec]
mov byte [esp + 0x588], 1
call fcn.0047c0e0
lea eax, [esp + 0x34]
mov dword [esp + 0x588], 0xffffffff
push eax
jmp 0x411c3e
lea esi, [esp + 0x60]
mov byte [esp + 0x588], 7
call fcn.00402420
lea esi, [esp + 0x148]
mov byte [esp + 0x588], 4
call fcn.00402420
lea ecx, [esp + 0xec]
mov byte [esp + 0x588], 1
call fcn.0047c0e0
lea ecx, [esp + 0x34]
mov dword [esp + 0x588], 0xffffffff
push ecx
jmp 0x411c3e