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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100718e2
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.100142a0
push ecx
lea ecx, [edi + 4]
call fcn.1000d960
mov eax, dword [0x1008beb0]
test al, 1
jne 0x10012e25
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 1
call fcn.10045770
add esp, 0xc
call fcn.10005f50
push 0x10074db0
call fcn.10043c72
mov byte [ebp - 4], 0
add esp, 4
mov eax, dword [0x1008beb0]
mov esi, dword [0x1008be94]
cmp dword [esi - 0xc], 0
je 0x10012f2d
test al, 1
jne 0x10012e72
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 2
call fcn.10045770
add esp, 0xc
call fcn.10005f50
push 0x10074db0
call fcn.10043c72
mov byte [ebp - 4], 0
add esp, 4
mov esi, dword [0x1008be94]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10045770
lea eax, [edi + 0x124]
add esp, 0xc
cmp dword [eax + 0x14], 7
jbe 0x10012e96
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x1007e434
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.1000c640
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
cmp dword [ebp - 0x220], 7
cmova ecx, dword [ebp - 0x234]
call fcn.10009340
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x10012f2d
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10012f23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100135ef
push ecx
push edx
call fcn.10043c87
add esp, 8
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x30], 0
je 0x10012f43
call fcn.10014310
lea eax, [ebp - 0x294]
mov ecx, edi
push eax
call fcn.10014800
mov esi, eax
test esi, esi
js 0x100135ad
push 1
push 0x1e
mov ecx, edi
call fcn.100142a0
mov eax, dword [edi + 0xb0]
mov ecx, dword [edi + 0xac]
sub eax, ecx
sar eax, 6
mov dword [ebp - 0x298], 0
test eax, eax
je 0x10013079
xor esi, esi
lea ebx, [edi + 0x10c]
mov dword [ebp - 0x294], esi
nop word [eax + eax]
lea eax, [ecx + esi]
cmp dword [eax + 0x18], 7
lea esi, [eax + 4]
mov dword [ebp - 0x21c], eax
mov eax, esi
jbe 0x10012fb6
mov eax, dword [esi]
push 0x1007e58c
push eax
call fcn.1004f049
add esp, 8
test eax, eax
jne 0x10012fd4
cmp dword [ebx + 0x14], 7
mov eax, ebx
jbe 0x10013026
mov eax, dword [ebx]
jmp 0x10013026
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10045770
add esp, 0xc
mov eax, ebx
cmp dword [ebx + 0x14], 7
jbe 0x10012ff4
mov eax, dword [ebx]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1004e82f
add esp, 0xc
cmp dword [esi + 0x14], 7
jbe 0x10013011
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 - 0x21c]
push dword [eax]
call fcn.10019bc0
mov esi, eax
test esi, esi
js 0x100135ad
mov eax, dword [edi + 0xb0]
mov edx, dword [ebp - 0x298]
mov ecx, dword [edi + 0xac]
inc edx
mov esi, dword [ebp - 0x294]
sub eax, ecx
add esi, 0x40
sar eax, 6
mov dword [ebp - 0x298], edx
mov dword [ebp - 0x294], esi
cmp edx, eax
jb 0x10012fa0
push 3
push 0x32
mov ecx, edi
mov dword [ebp - 0x294], 0
call fcn.100142a0
cmp dword [edi + 0x138], 7
lea esi, [edi + 0x124]
mov eax, esi
jbe 0x100130a1
mov eax, dword [esi]
push ecx
push 1
push eax
call fcn.1000dc20
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x100130b4
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esi + 0x14], 7
jbe 0x100130c7
mov esi, dword [esi]
cmp dword [edi + 0x120], 7
lea ebx, [edi + 0x10c]
mov eax, ebx
jbe 0x100130da
mov eax, dword [ebx]
push esi
push eax
call fcn.1000e4c0
cmp dword [ebx + 0x14], 7
jbe 0x100130e9
mov ebx, dword [ebx]
push ecx
push 0
push ebx
call fcn.1000dc20
cmp dword [edi + 0x138], 7
lea esi, [edi + 0x124]
jbe 0x10013103
mov esi, dword [esi]
push ecx
mov ebx, esp
mov dword [ebp - 0x298], esp
mov dword [ebp - 0x21c], ebx
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x100135f4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push esi
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.10005aa0
test al, al
jne 0x10013168
test esi, esi
jne 0x10013143
xor ecx, ecx
jmp 0x1001315f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013150
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.10005d10
mov byte [ebp - 4], 5
mov eax, dword [0x1008beb0]
test al, 1
jne 0x100131a8
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 6
call fcn.10045770
add esp, 0xc
call fcn.10005f50
push 0x10074db0
call fcn.10043c72
add esp, 4
mov byte [ebp - 4], 5
mov ecx, 0x1008be48
mov byte [ebp - 4], 0
call fcn.10006890
push 2
push 0x3c
mov ecx, edi
call fcn.100142a0
cmp dword [ebp + 0x18], 0
je 0x10013200
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.10013620
mov esi, eax
mov dword [ebp - 0x294], esi
test esi, esi
js 0x100135ad
jmp 0x10013205
call fcn.10019300
push 4
push 0x46
mov ecx, edi
call fcn.100142a0
cmp dword [ebp + 0x24], 0
je 0x1001321d
mov ecx, edi
call fcn.10014050
push 5
push 0x50
mov ecx, edi
call fcn.100142a0
cmp dword [ebp + 0x28], 0
je 0x10013235
mov ecx, edi
call fcn.10013de0
push 6
push 0x5a
mov ecx, edi
call fcn.100142a0
cmp dword [ebp + 0x2c], 0
je 0x100133a0
lea eax, [ebp - 0x290]
push eax
lea ecx, [edi + 4]
call fcn.1000d650
mov byte [ebp - 4], 7
cmp dword [ebp - 0x264], 0
jne 0x1001326f
mov byte [ebp - 4], 0
jmp 0x10013395
cmp dword [ebp - 0x260], 7
lea eax, [ebp - 0x218]
push 0x208
push 0
lea esi, [ebp - 0x274]
cmova esi, dword [ebp - 0x274]
push eax
call fcn.10045770
lea eax, [edi + 0x124]
add esp, 0xc
cmp dword [eax + 0x14], 7
jbe 0x100132a7
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x1007e434
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.1000c640
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.100104e0
cmp dword [ebp - 0x278], 7
lea eax, [ebp - 0x28c]
cmova eax, dword [ebp - 0x28c]
push eax
call fcn.10017ff0
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x10013375
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001336b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100135fe
push ecx
push edx
call fcn.10043c87
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.1000d730
push 8
push 0x5f
mov ecx, edi
call fcn.100142a0
cmp dword [ebp + 0x34], 0
je 0x1001357a
mov eax, dword [0x1008beb0]
test al, 1
jne 0x100133f1
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 8
call fcn.10045770
add esp, 0xc
call fcn.10005f50
push 0x10074db0
call fcn.10043c72
add esp, 4
mov byte [ebp - 4], 0
mov esi, dword [0x1008be88]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.10045770
lea eax, [edi + 0x124]
add esp, 0xc
cmp dword [eax + 0x14], 7
jbe 0x1001341b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x1007e434
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.1000c640
mov byte [ebp - 4], 9
lea esi, [ebp - 0x234]
cmp dword [ebp - 0x220], 7
cmova esi, dword [ebp - 0x234]
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10013603
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], 0xa
call fcn.10005aa0
test al, al
jne 0x100134c3
test esi, esi
jne 0x100134a2
xor ecx, ecx
jmp 0x100134b6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100134a7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x21c]
call fcn.10005d10
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x10013507
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100134fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001360d
push ecx
push edx
call fcn.10043c87
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 0x1001355e
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x298], edi
call fcn.10005e40
add eax, 0x10
mov ecx, 1
mov dword [edi], eax
call fcn.10034540
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 0x1001357a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 9
push 0x64
mov ecx, edi
call fcn.100142a0
push 0x1007d468
push 0x1007d9dc
push str.install
call fcn.10034e30
add esp, 0xc
mov ecx, edi
push 0xa
push 0x64
call fcn.100142a0
mov esi, dword [ebp - 0x294]
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 0x100135cf
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.10043637
mov esp, ebp
pop ebp
ret 0x30
call fcn.10047604
push 0x80004005
call fcn.100013a0
call fcn.10047604
push 0x80004005
call fcn.100013a0
call fcn.10047604
int3