Function at 0x100a0787
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b50aa
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x498], ecx
push str.TxdlService.exe
mov ecx, dword [ebp - 0x498]
add ecx, 0x78
call fcn.1000a156
push 0x100c5b50
mov ecx, dword [ebp - 0x498]
add ecx, 0xb0
call fcn.1000a156
lea eax, [ebp - 0x46c]
push eax
call fcn.100ac6ef
pop ecx
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp - 0x49c]
mov dword [ebp - 0x4a0], eax
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x4a0]
call fcn.10010f80
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000171b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x46c]
call fcn.10003e5d
push 0
mov ecx, dword [ebp - 0x498]
add ecx, 0x44
call fcn.10012b27
movzx eax, al
test eax, eax
je 0x100a0b66
lea ecx, [ebp - 0x30]
call fcn.10023593
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x498]
add ecx, 0x44
call fcn.10010f80
mov dword [ebp - 0x4a4], eax
push 0x100c26e6
lea ecx, [ebp - 0x30]
call fcn.10039cae
push eax
push 0x100c5b78
push dword [ebp - 0x4a4]
mov eax, dword [ebp - 0x4a4]
mov eax, dword [eax]
call dword [eax + 0x14]
push 0x100c59e4
lea ecx, [ebp - 0x30]
call fcn.1003d7d2
movzx eax, al
test eax, eax
je 0x100a08b1
lea ecx, [ebp - 0x30]
call fcn.10010f80
push eax
mov ecx, dword [ebp - 0x498]
add ecx, 0x78
call fcn.1000a156
lea ecx, [ebp - 0x34]
call fcn.10023593
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x498]
add ecx, 0x44
call fcn.10010f80
mov dword [ebp - 0x4a8], eax
push 0x100c26e7
lea ecx, [ebp - 0x34]
call fcn.10039cae
push eax
push str.ServiceInstallName
push dword [ebp - 0x4a8]
mov eax, dword [ebp - 0x4a8]
mov eax, dword [eax]
call dword [eax + 0x14]
push 0x100c5b9c
lea ecx, [ebp - 0x34]
call fcn.1003d7d2
movzx eax, al
test eax, eax
je 0x100a0923
lea ecx, [ebp - 0x34]
call fcn.10010f80
push eax
mov ecx, dword [ebp - 0x498]
add ecx, 0xb0
call fcn.1000a156
lea ecx, [ebp - 0x38]
call fcn.10023593
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x498]
add ecx, 0x44
call fcn.10010f80
mov dword [ebp - 0x4ac], eax
push 0x100c26fa
lea ecx, [ebp - 0x38]
call fcn.10039cae
push eax
push 0x100c5ba0
push dword [ebp - 0x4ac]
mov eax, dword [ebp - 0x4ac]
mov eax, dword [eax]
call dword [eax + 0x14]
push 0x100c5bb0
lea ecx, [ebp - 0x38]
call fcn.1003d7d2
movzx eax, al
test eax, eax
je 0x100a0b42
lea ecx, [ebp - 0x468]
call fcn.1003ca89
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call fcn.10010f80
push eax
lea ecx, [ebp - 0x470]
call fcn.10003df2
mov dword [ebp - 0x4b0], eax
mov eax, dword [ebp - 0x4b0]
mov dword [ebp - 0x4b4], eax
mov byte [ebp - 4], 7
push 0
push 0x2c
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 0x4b4]
call fcn.100a8766
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x470]
call fcn.10003e5d
lea ecx, [ebp - 0x3c]
call fcn.100107ef
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x468]
call fcn.1003e2e9
test eax, eax
jbe 0x100a0a11
push 0
lea ecx, [ebp - 0x468]
call fcn.1003cab0
push eax
lea ecx, [ebp - 0x3c]
call fcn.10003e6e
lea ecx, [ebp - 0x3c]
call fcn.10023f97
and word [ebp - 0x454], 0
push 0x410
push 0
lea eax, [ebp - 0x452]
push eax
call fcn.10071bb0
add esp, 0xc
mov ecx, dword [ebp - 0x498]
add ecx, 0x44
call fcn.10010f80
mov dword [ebp - 0x4b8], eax
push 0
push 0x100c5bb4
push dword [ebp - 0x4b8]
mov eax, dword [ebp - 0x4b8]
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 0x458], eax
push 0x208
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x458]
lea ecx, [ebp - 0x3c]
call fcn.10010f80
push eax
call fcn.100a8bd4
add esp, 0x10
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100a0b18
push 0
lea eax, [ebp - 0x454]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a0ad0
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000a156
jmp 0x100a0b16
lea eax, [ebp - 0x474]
push eax
call fcn.100ac81d
pop ecx
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp - 0x4bc]
mov dword [ebp - 0x4c0], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x4c0]
call fcn.10010f80
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000a156
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x474]
call fcn.10003e5d
jmp 0x100a0b27
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000a156
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
call fcn.10003e5d
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x468]
call fcn.1003cadb
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.1000abe4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.1000abe4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.1000abe4
push 0x100c5bc0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.1000ab6a
add esp, 0xc
mov dword [ebp - 0x4c4], eax
mov eax, dword [ebp - 0x4c4]
mov dword [ebp - 0x4c8], eax
mov byte [ebp - 4], 0xa
push dword [ebp - 0x4c8]
mov ecx, dword [ebp - 0x498]
add ecx, 0x94
call fcn.1000179e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x490]
call fcn.10001789
mov eax, dword [ebp - 0x498]
add eax, 0x78
push eax
mov ecx, dword [ebp - 0x498]
add ecx, 0x94
call fcn.100017b4
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x498]
add ecx, 0xcc
call fcn.1000179e
mov ecx, dword [ebp - 0x498]
add ecx, 0x78
call fcn.100018b0
movzx eax, al
test eax, eax
jne 0x100a0c3b
mov ecx, dword [ebp - 0x498]
add ecx, 0xb0
call fcn.100018b0
movzx eax, al
test eax, eax
jne 0x100a0c3b
mov ecx, dword [ebp - 0x498]
add ecx, 0x94
call fcn.100018b0
movzx eax, al
test eax, eax
jne 0x100a0c3b
mov dword [ebp - 0x4cc], 1
jmp 0x100a0c42
and dword [ebp - 0x4cc], 0
mov eax, dword [ebp - 0x4cc]
mov dword [ebp - 0x494], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10001789
mov eax, dword [ebp - 0x494]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006ef11
leave
ret