Function at 0x41a2c0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4932e3
mov eax, dword fs:[0]
push eax
sub esp, 0x570
mov eax, dword [0x4ae7cc]
xor eax, esp
mov dword [esp + 0x568], eax
push ebx
push esi
push edi
mov eax, dword [0x4ae7cc]
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.0047a9a0
add esp, 0xc
push 0x206
lea eax, [esp + 0x16a]
xor edx, edx
push esi
push eax
mov word [esp + 0x170], dx
call fcn.0047a9a0
add esp, 0xc
lea ecx, [esp + 0x36c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41a5e3
lea edx, [esp + 0x2c]
push edx
call fcn.00471200
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 0x41a5e3
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a3fd
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x168]
call fcn.00402a80
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x58c], esi
call fcn.00412940
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 0x41a3fd
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.0041c060
lea edx, [esp + 0x14]
push edx
mov ecx, 0x49d1d8
mov dword [esp + 0x58c], 1
call fcn.00402a80
lea eax, [esp + 0x14]
push eax
mov ecx, 0x67
lea edi, [esp + 0x38]
mov byte [esp + 0x58c], 2
call fcn.0041c310
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 0x41a469
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x41ab8b
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.00402a80
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.0041c3b0
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 0x41a4d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x41ab8b
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.00402d50
lea ecx, [esp + 0x7c]
push ecx
lea esi, [esp + 0xf0]
mov byte [esp + 0x58c], 5
call fcn.00424100
add esp, 4
test al, al
lea ecx, [esp + 0x7c]
sete bl
mov byte [esp + 0x588], 4
call fcn.00472d40
test bl, bl
je 0x41a609
lea ecx, [esp + 0xec]
mov byte [esp + 0x588], 1
call fcn.00417ff0
lea edx, [esp + 0x34]
mov dword [esp + 0x588], 0xffffffff
push edx
call fcn.0041c1f0
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.00475410
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xf8], 0
mov dword [esp + 0x14], 0
jbe 0x41a93d
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 0x41ab29
mov eax, dword [edi + 8]
test eax, eax
jne 0x41a64e
mov ecx, dword [0x4b1eac]
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 8]
lea edx, [esp + 0x148]
push edx
call fcn.004125e0
add esp, 4
lea eax, [esp + 0x164]
lea ecx, [esp + 0x60]
mov byte [esp + 0x588], 7
call fcn.004073b0
mov ebx, 8
mov byte [esp + 0x588], bl
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x41a694
mov eax, dword [0x4b1eac]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x10], 0
je 0x41a6fa
push 1
mov eax, 0x49d1e0
lea ecx, [esp + 0x64]
call fcn.00408080
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x41a6bd
mov ecx, dword [0x4b1eac]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0xd0]
push edx
call fcn.004125e0
add esp, 4
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x68]
mov byte [esp + 0x590], 9
call fcn.00406150
lea esi, [esp + 0xd0]
mov byte [esp + 0x588], bl
call fcn.00403280
mov eax, dword [edi + 8]
test eax, eax
jne 0x41a709
mov eax, dword [0x4b1eac]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp dword [eax + 0x10], 0
je 0x41a76f
push 1
mov eax, 0x49d1e0
lea ecx, [esp + 0x64]
call fcn.00408080
mov eax, dword [edi + 8]
test eax, eax
jne 0x41a732
mov ecx, dword [0x4b1eac]
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 0xc]
lea edx, [esp + 0xb4]
push edx
call fcn.004125e0
add esp, 4
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x68]
mov byte [esp + 0x590], 0xa
call fcn.00406150
lea esi, [esp + 0xb4]
mov byte [esp + 0x588], bl
call fcn.00403280
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], ebx
jae 0x41a77d
lea eax, [esp + 0x60]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x41a7c7
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x74], ebx
jae 0x41a798
lea ecx, [esp + 0x60]
lea eax, [esp + 0x18]
push eax
call fcn.00402a80
mov ecx, dword [esp + 0x18]
or dword [esp + 0x1c], 1
push ecx
call esi
test eax, eax
jne 0x41a7c7
mov edx, dword [esp + 0x18]
push eax
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x41a7c7
mov bl, 1
jmp 0x41a7c9
xor bl, bl
test byte [esp + 0x1c], 1
je 0x41a7de
and dword [esp + 0x1c], 0xfffffffe
lea eax, [esp + 0x18]
call fcn.0041c7d0
test bl, bl
jne 0x41ab52
mov eax, dword [edi + 8]
test eax, eax
jne 0x41a7f5
mov eax, dword [0x4b1eac]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0x7c]
push edx
call fcn.004125e0
add esp, 4
mov esi, eax
lea eax, [esp + 0xb4]
push eax
lea ebx, [esp + 0x64]
mov byte [esp + 0x58c], 0xb
call fcn.0041baf0
add esp, 4
mov ecx, eax
lea edx, [esp + 0x98]
push edx
mov eax, esi
mov byte [esp + 0x58c], 0xc
call fcn.0041bba0
add esp, 4
lea esi, [esp + 0xb4]
mov byte [esp + 0x588], 0xe
call fcn.00403280
lea esi, [esp + 0x7c]
mov byte [esp + 0x588], 0xf
call fcn.00403280
mov ecx, dword [esp + 0x98]
mov esi, 8
cmp dword [esp + 0xac], esi
jae 0x41a880
lea ecx, [esp + 0x98]
lea eax, [esp + 0x2c]
push eax
call fcn.00402a80
mov byte [esp + 0x588], 0x10
mov ecx, dword [esp + 0x148]
cmp dword [esp + 0x15c], esi
jae 0x41a8a9
lea ecx, [esp + 0x148]
lea edx, [esp + 0x24]
push edx
call fcn.00402a80
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x594], 0x11
call fcn.0041c460
test al, al
lea eax, [esp + 0x24]
sete bl
call fcn.0041c7d0
lea eax, [esp + 0x2c]
call fcn.0041c7d0
lea esi, [esp + 0x98]
mov byte [esp + 0x588], 8
call fcn.00403280
lea esi, [esp + 0x60]
mov byte [esp + 0x588], 7
call fcn.00403280
lea esi, [esp + 0x148]
mov byte [esp + 0x588], 4
call fcn.00403280
test bl, bl
jne 0x41a5ba
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0xf8]
jb 0x41a61f
push 0x49ac6c
push str.installer_resources
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0xa4]
push 0x49d1e4
push ecx
call fcn.004083f0
add esp, 0x14
mov esi, 8
mov byte [esp + 0x588], 0x12
cmp dword [eax + 0x14], esi
jb 0x41a978
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
mov ecx, eax
call fcn.00402a80
mov byte [esp + 0x588], 0x14
cmp dword [esp + 0xac], esi
jb 0x41a9a5
mov eax, dword [esp + 0x98]
push eax
call fcn.00475405
add esp, 4
xor ecx, ecx
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], cx
call fcn.00471b90
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], 1
jle 0x41a9e6
mov edx, dword [eax - 0xc]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004028c0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x7c]
call fcn.004073b0
lea ecx, [esp + 0xd0]
push ecx
mov bl, 0x15
lea ecx, [esp + 0x80]
mov byte [esp + 0x58c], bl
call fcn.004124f0
add esp, 4
mov edx, eax
lea esi, [esp + 0xb4]
mov byte [esp + 0x588], 0x16
call fcn.00471c50
mov esi, 0x10
cmp dword [esp + 0xc8], esi
jb 0x41aa43
mov edx, dword [esp + 0xb4]
push edx
call fcn.00475405
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 0x41aa7f
mov eax, dword [esp + 0xd0]
push eax
call fcn.00475405
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 0x41aab8
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00475405
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 0x41aaf9
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.00417ff0
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x58c], 0xffffffff
call fcn.0041c1f0
mov al, 1
jmp 0x41a5e5
lea ecx, [esp + 0xec]
mov byte [esp + 0x588], 1
call fcn.00417ff0
lea eax, [esp + 0x34]
mov dword [esp + 0x588], 0xffffffff
push eax
jmp 0x41a5de
lea esi, [esp + 0x60]
mov byte [esp + 0x588], 7
call fcn.00403280
lea esi, [esp + 0x148]
mov byte [esp + 0x588], 4
call fcn.00403280
lea ecx, [esp + 0xec]
mov byte [esp + 0x588], 1
call fcn.00417ff0
lea ecx, [esp + 0x34]
mov dword [esp + 0x588], 0xffffffff
push ecx
jmp 0x41a5de