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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100714bb
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x29c], edi
mov dword [ebp - 4], 0
mov eax, dword [0x1008b920]
push 0
push 0xa
mov dword [ebp - 0x294], 0
mov dword [edi + 0x174], eax
call fcn.10013fe0
push ecx
lea ecx, [edi + 4]
call fcn.1000d800
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x294]
mov ecx, edi
push eax
call fcn.10014540
mov esi, eax
test esi, esi
js 0x100132d9
cmp dword [ebp + 0x30], 0
je 0x10012cb2
call fcn.10014050
push 1
push 0x1e
mov ecx, edi
call fcn.10013fe0
mov eax, dword [edi + 0xb0]
mov ecx, dword [edi + 0xac]
sub eax, ecx
sar eax, 6
mov dword [ebp - 0x21c], 0
test eax, eax
je 0x10012dc9
xor esi, esi
lea ebx, [edi + 0x10c]
mov dword [ebp - 0x294], esi
nop
lea eax, [esi + ecx]
cmp dword [eax + 0x18], 7
lea esi, [eax + 4]
mov dword [ebp - 0x298], eax
mov eax, esi
jbe 0x10012d06
mov eax, dword [esi]
push 0x1007e574
push eax
call fcn.1004ec69
add esp, 8
test eax, eax
jne 0x10012d24
cmp dword [ebx + 0x14], 7
mov eax, ebx
jbe 0x10012d76
mov eax, dword [ebx]
jmp 0x10012d76
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10045390
add esp, 0xc
mov eax, ebx
cmp dword [ebx + 0x14], 7
jbe 0x10012d44
mov eax, dword [ebx]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1004e44f
add esp, 0xc
cmp dword [esi + 0x14], 7
jbe 0x10012d61
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push dword [edi + 0x174]
push eax
mov eax, dword [ebp - 0x298]
push dword [eax]
call fcn.10019900
mov esi, eax
test esi, esi
js 0x100132d9
mov eax, dword [edi + 0xb0]
mov edx, dword [ebp - 0x21c]
mov ecx, dword [edi + 0xac]
inc edx
mov esi, dword [ebp - 0x294]
sub eax, ecx
add esi, 0x40
sar eax, 6
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x294], esi
cmp edx, eax
jb 0x10012cf0
push 3
xor esi, esi
mov ecx, edi
push 0x32
mov dword [ebp - 0x298], esi
call fcn.10013fe0
cmp dword [edi + 0x138], 7
lea ebx, [edi + 0x124]
mov eax, ebx
jbe 0x10012def
mov eax, dword [ebx]
push ecx
push 1
push eax
call fcn.1000dac0
cmp dword [ebx + 0x14], 7
mov eax, ebx
jbe 0x10012e02
mov eax, dword [ebx]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebx + 0x14], 7
jbe 0x10012e15
mov ebx, dword [ebx]
cmp dword [edi + 0x120], 7
lea ecx, [edi + 0x10c]
jbe 0x10012e2a
mov ecx, dword [edi + 0x10c]
push ebx
push ecx
call fcn.1000e360
cmp dword [edi + 0x120], 7
lea eax, [edi + 0x10c]
jbe 0x10012e42
mov eax, dword [eax]
push ecx
push 0
push eax
call fcn.1000dac0
cmp dword [edi + 0x138], 7
lea ebx, [edi + 0x124]
jbe 0x10012e5c
mov ebx, dword [ebx]
push ecx
mov dword [ebp - 0x21c], esp
mov dword [ebp - 0x294], esp
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1001333d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x294]
add eax, 0x10
mov dword [ecx], eax
push ebx
mov byte [ebp - 4], 1
call fcn.10005aa0
test al, al
jne 0x10012ebf
test ebx, ebx
jne 0x10012e9e
xor ecx, ecx
jmp 0x10012eb2
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012ea3
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x294]
push ebx
call fcn.10005d10
mov byte [ebp - 4], 2
mov eax, dword [0x1008beb0]
test al, 1
jne 0x10012eff
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 3
call fcn.10045390
add esp, 0xc
call fcn.10005f50
push 0x10074980
call fcn.100438b2
add esp, 4
mov byte [ebp - 4], 2
mov ecx, 0x1008be48
mov byte [ebp - 4], 0
call fcn.10006890
push 2
push 0x3c
mov ecx, edi
call fcn.10013fe0
cmp dword [ebp + 0x18], 0
je 0x10012f57
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ecx
mov esi, esp
mov dword [ebp - 0x294], esi
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.10005e40
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.10013360
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
js 0x100132d9
jmp 0x10012f5c
call fcn.10019040
push 4
push 0x46
mov ecx, edi
call fcn.10013fe0
cmp dword [ebp + 0x24], 0
je 0x10012f74
mov ecx, edi
call fcn.10013d90
push 5
push 0x50
mov ecx, edi
call fcn.10013fe0
cmp dword [ebp + 0x28], 0
je 0x10012f8c
mov ecx, edi
call fcn.10013b20
push 6
push 0x5a
mov ecx, edi
call fcn.10013fe0
cmp dword [ebp + 0x2c], 0
je 0x100130f7
lea eax, [ebp - 0x290]
push eax
lea ecx, [edi + 4]
call fcn.1000d4f0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x264], 0
jne 0x10012fc6
mov byte [ebp - 4], 0
jmp 0x100130ec
cmp dword [ebp - 0x260], 7
lea eax, [ebp - 0x218]
push 0x208
push 0
lea ebx, [ebp - 0x274]
cmova ebx, dword [ebp - 0x274]
push eax
call fcn.10045390
lea eax, [edi + 0x124]
add esp, 0xc
cmp dword [eax + 0x14], 7
jbe 0x10012ffe
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x1007e420
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.1000c540
mov edx, dword [ebp - 0x244]
lea ecx, [ebp - 0x25c]
xor ebx, ebx
lea eax, [ebp - 0x234]
test edx, edx
push edx
setg bl
cmp dword [ebp - 0x248], 7
push ebx
cmova ecx, dword [ebp - 0x25c]
cmp dword [ebp - 0x220], 7
push ecx
cmova eax, dword [ebp - 0x234]
push eax
call fcn.10010380
cmp dword [ebp - 0x278], 7
lea eax, [ebp - 0x28c]
cmova eax, dword [ebp - 0x28c]
push eax
call fcn.10017d30
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x100130cc
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100130c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013347
push ecx
push edx
call fcn.100438c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x290]
call fcn.1000d5d0
push 9
push 0x5f
mov ecx, edi
call fcn.10013fe0
cmp dword [ebp + 0x34], 0
je 0x100132d9
mov eax, dword [0x1008beb0]
test al, 1
jne 0x10013148
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 5
call fcn.10045390
add esp, 0xc
call fcn.10005f50
push 0x10074980
call fcn.100438b2
add esp, 4
mov byte [ebp - 4], 0
mov esi, dword [0x1008be88]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.10045390
lea eax, [edi + 0x124]
add esp, 0xc
cmp dword [eax + 0x14], 7
jbe 0x10013172
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x1007e420
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.1000c540
mov byte [ebp - 4], 6
lea esi, [ebp - 0x234]
cmp dword [ebp - 0x220], 7
cmova esi, dword [ebp - 0x234]
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1001334c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push esi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 7
call fcn.10005aa0
test al, al
jne 0x1001321c
test esi, esi
jne 0x100131f9
xor ecx, ecx
jmp 0x1001320f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013200
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x21c]
call fcn.10005d10
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x10013260
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013256
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013356
push ecx
push edx
call fcn.100438c7
add esp, 8
mov esi, dword [ebp - 0x21c]
xor eax, eax
push esi
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100132b7
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x294], edi
call fcn.10005e40
add eax, 0x10
mov ecx, 1
mov dword [edi], eax
call fcn.100342b0
mov edi, dword [ebp - 0x29c]
add esp, 4
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100132d3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x298]
push 0x1007d468
push 0x1007d9d8
push str.install
call fcn.10034ba0
add esp, 0xc
mov ecx, edi
push 0xa
push 0x64
call fcn.10013fe0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001331d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10043277
mov esp, ebp
pop ebp
ret 0x30
push 0x80004005
call fcn.100013a0
call fcn.10047224
push 0x80004005
call fcn.100013a0
call fcn.10047224
int3