Function at 0x4103e0
Capabilities:
Create directory
Get common file path
Get program files directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45197c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x320
mov eax, dword [0x45e008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x174], 0
push 0
push 0x26
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4109e5
xor ecx, ecx
mov byte [ebp - 0x169], cl
xor edx, edx
mov byte [ebp - 0x16a], dl
xor eax, eax
mov byte [ebp - 0x16b], al
mov cl, byte [ebp - 0x169]
mov byte [ebp - 0x198], cl
mov dl, byte [ebp - 0x16a]
mov byte [ebp - 0x17c], dl
mov al, byte [ebp - 0x16b]
mov byte [ebp - 0x180], al
mov dword [ebp - 0x1e8], 0x8002560d
mov dword [ebp - 0x1e4], 0x1104c092
mov ecx, dword [ebp - 0x1e8]
mov dword [ebp - 0x230], ecx
mov edx, dword [ebp - 0x1e4]
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x1f0], 0xc1741ba8
mov dword [ebp - 0x1ec], 0x1bb3bb62
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x1ec]
mov dword [ebp - 0x224], ecx
lea edx, [ebp - 0x230]
mov dword [ebp - 0x19c], edx
mov dword [ebp - 0x130], 0xf76d0651
mov dword [ebp - 0x12c], 0x7e47b2f7
mov dword [ebp - 0x128], 0xae066fc6
mov dword [ebp - 0x124], 0x1bb3bb0e
xor eax, eax
mov byte [ebp - 0x16c], al
mov cl, byte [ebp - 0x16c]
mov byte [ebp - 0x184], cl
movaps xmm0, xmmword [ebp - 0x130]
movaps xmmword [ebp - 0x2d0], xmm0
mov edx, dword [ebp - 0x19c]
movups xmm0, xmmword [edx]
movaps xmmword [ebp - 0x2a0], xmm0
movaps xmm0, xmmword [ebp - 0x2a0]
pxor xmm0, xmmword [ebp - 0x2d0]
movaps xmmword [ebp - 0x260], xmm0
movaps xmm0, xmmword [ebp - 0x260]
mov eax, dword [ebp - 0x19c]
movups xmmword [eax], xmm0
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp - 0x1bc]
push edx
lea ecx, [ebp - 0x310]
call fcn.00401810
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x214], ecx
lea edx, [ebp - 0x120]
push edx
lea ecx, [ebp - 0x2f8]
call fcn.00401810
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x218], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x168]
push ecx
call fcn.00417440
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2f8]
call fcn.00401a20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x310]
call fcn.00401a20
lea edx, [ebp - 0x168]
mov dword [ebp - 0x1a0], edx
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1a0]
cmp dword [ecx + 0x14], 0x10
jb 0x410646
mov dword [ebp - 0x1a8], 1
jmp 0x410650
mov dword [ebp - 0x1a8], 0
movzx edx, byte [ebp - 0x1a8]
test edx, edx
je 0x410675
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax]
mov dword [ebp - 0x1c8], ecx
mov edx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1ac], edx
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x1cc]
push ecx
call fcn.004031b0
add esp, 4
movzx edx, al
test edx, edx
jne 0x41071d
lea eax, [ebp - 0x168]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1b4], ecx
mov edx, dword [ebp - 0x1a4]
cmp dword [edx + 0x14], 0x10
jb 0x4106cb
mov dword [ebp - 0x1b0], 1
jmp 0x4106d5
mov dword [ebp - 0x1b0], 0
movzx eax, byte [ebp - 0x1b0]
test eax, eax
je 0x4106fa
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [ecx]
mov dword [ebp - 0x1d0], edx
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x1b4]
mov dword [ebp - 0x1d4], ecx
push 0
mov edx, dword [ebp - 0x1d4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4109d3
movzx eax, byte [ebx + 0xc]
test eax, eax
jne 0x41075d
lea ecx, [ebp - 0x168]
push ecx
mov ecx, dword [ebx + 8]
call fcn.00415560
mov edx, dword [ebp - 0x174]
or edx, 1
mov dword [ebp - 0x174], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.00401a20
mov eax, dword [ebx + 8]
jmp 0x410a04
xor eax, eax
mov byte [ebp - 0x16d], al
xor ecx, ecx
mov byte [ebp - 0x16e], cl
xor edx, edx
mov byte [ebp - 0x16f], dl
mov al, byte [ebp - 0x16d]
mov byte [ebp - 0x188], al
mov cl, byte [ebp - 0x16e]
mov byte [ebp - 0x18c], cl
mov dl, byte [ebp - 0x16f]
mov byte [ebp - 0x190], dl
mov dword [ebp - 0x1f8], 0x8002560d
mov dword [ebp - 0x1f4], 0x1104c092
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x1f4]
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x200], 0xc1741ba8
mov dword [ebp - 0x1fc], 0x6de0e462
mov edx, dword [ebp - 0x200]
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x208], 0xfee054a0
mov dword [ebp - 0x204], 0xaec32da4
mov ecx, dword [ebp - 0x208]
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x204]
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x210], 0x70519188
mov dword [ebp - 0x20c], 0x154bd0b0
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x234], ecx
lea edx, [ebp - 0x250]
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x150], 0xf76d0651
mov dword [ebp - 0x14c], 0x7e47b2f7
mov dword [ebp - 0x148], 0xae066fc6
mov dword [ebp - 0x144], 0x1bb3bb0e
mov dword [ebp - 0x140], 0x86857ac3
mov dword [ebp - 0x13c], 0xaec32dc1
mov dword [ebp - 0x138], 0x70519188
mov dword [ebp - 0x134], 0x154bd0b0
xor eax, eax
mov byte [ebp - 0x170], al
mov cl, byte [ebp - 0x170]
mov byte [ebp - 0x194], cl
movaps xmm0, xmmword [ebp - 0x150]
movaps xmmword [ebp - 0x270], xmm0
mov edx, dword [ebp - 0x178]
movups xmm0, xmmword [edx]
movaps xmmword [ebp - 0x2c0], xmm0
movaps xmm0, xmmword [ebp - 0x2c0]
pxor xmm0, xmmword [ebp - 0x270]
movaps xmmword [ebp - 0x280], xmm0
movaps xmm0, xmmword [ebp - 0x280]
mov eax, dword [ebp - 0x178]
movups xmmword [eax], xmm0
mov ecx, dword [ebp - 0x178]
add ecx, 0x10
mov dword [ebp - 0x1b8], ecx
movaps xmm0, xmmword [ebp - 0x140]
movaps xmmword [ebp - 0x2e0], xmm0
mov edx, dword [ebp - 0x1b8]
movups xmm0, xmmword [edx]
movaps xmmword [ebp - 0x290], xmm0
movaps xmm0, xmmword [ebp - 0x290]
pxor xmm0, xmmword [ebp - 0x2e0]
movaps xmmword [ebp - 0x2b0], xmm0
movaps xmm0, xmmword [ebp - 0x2b0]
mov eax, dword [ebp - 0x1b8]
movups xmmword [eax], xmm0
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x1d8], ecx
mov edx, dword [ebp - 0x1d8]
push edx
lea ecx, [ebp - 0x328]
call fcn.00401810
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1e0]
push ecx
lea edx, [ebp - 0x168]
push edx
mov eax, dword [ebx + 8]
push eax
call fcn.004173c0
add esp, 0xc
mov ecx, dword [ebp - 0x174]
or ecx, 1
mov dword [ebp - 0x174], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x328]
call fcn.00401a20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.00401a20
mov eax, dword [ebx + 8]
jmp 0x410a04
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.00401a20
push 0x459086
mov ecx, dword [ebx + 8]
call fcn.00401810
mov edx, dword [ebp - 0x174]
or edx, 1
mov dword [ebp - 0x174], edx
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00439348
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret