Function at 0x10026d40
Capabilities:
Create directory
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ec49
mov eax, dword fs:[0]
push eax
mov eax, 0x1030
call fcn.10046900
mov eax, dword [0x10088014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x103c], edi
mov dword [ebp - 0x1020], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov ebx, 1
push 0x408
mov ecx, edi
mov dword [ebp - 0x1020], ebx
call fcn.100050d0
mov ecx, eax
mov dword [edi + 0x10], 0x400
mov dword [edi + 0x14], 0x407
mov ax, word [edi]
push 4
mov word [ecx], ax
mov dword [edi], ecx
mov ecx, edi
mov dword [edi + 0x10], 0
mov eax, dword [esi + 0x34]
push 0x1007fb04
mov esi, dword [eax + 8]
call fcn.10002e70
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x10026ec7
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x34]
mov edx, dword [eax + 0x20]
cmp word [edx], 0
je 0x10026e35
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10026e12
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.10026790
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x10026f29
push 0x800
lea eax, [ebp - 0x81c]
push 0
push eax
call fcn.10047960
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x81c]
add esp, 0xc
push 0x400
push eax
push str._programdata_BDLogging
call esi
lea eax, [ebp - 0x81c]
push str._programdata_
push eax
call fcn.10046fd5
add esp, 8
test eax, eax
je 0x10026e98
xor eax, eax
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x81c]
push 0x400
push eax
push str._ALLUSERSPROFILE_Application_DataBDLogging
call esi
lea ecx, [ebp - 0x81c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10026ea1
sub ecx, edx
lea eax, [ebp - 0x81c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10026790
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x10026f29
push 4
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
push 0
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10026ee3
sub ecx, edx
lea eax, [ebp - 0x1c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10026790
push 0xb
push str.ProgramData
mov ecx, edi
call fcn.10026790
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10026f16
mov eax, dword [edi]
push 0
push eax
call esi
push 0xa
push str.BDLogging
mov ecx, edi
call fcn.10026790
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10026f33
mov eax, dword [edi]
push 0
push eax
call esi
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10026f42
mov eax, dword [edi]
push 0x2000
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str.CstLogs
push edi
call fcn.10026a50
push 0x1000
lea eax, [ebp - 0x101c]
push 0
push eax
call fcn.10047960
add esp, 0xc
lea eax, [ebp - 0x101c]
push 0x800
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x101c]
push 0x5c
push eax
call fcn.10046f31
mov edx, eax
add esp, 8
test edx, edx
je 0x10026f9f
add edx, 2
jmp 0x10026fa5
lea edx, [ebp - 0x101c]
mov ecx, edx
mov dword [ebp - 0x1038], 0
xor eax, eax
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1024], 7
mov word [ebp - 0x1038], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10026fd1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1038]
call fcn.10002e70
or ebx, 2
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1038]
cmp dword [ebp - 0x1024], 8
cmovae eax, dword [ebp - 0x1038]
push eax
push edi
call fcn.10026a50
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1024]
cmp edx, 8
jb 0x1002705c
mov ecx, dword [ebp - 0x1038]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10027052
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10027150
push edx
push ecx
call fcn.10045702
add esp, 8
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008a2c0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1008ac50]
cmp eax, dword [ecx + 4]
jle 0x100270b9
push 0x1008ac50
call fcn.10045866
add esp, 4
cmp dword [0x1008ac50], 0xffffffff
jne 0x100270b9
push ecx
mov dword [ebp - 4], 2
call fcn.10026b30
push 0x10070cc0
call fcn.10045c41
add esp, 4
mov byte [ebp - 4], 0
push 0x1008ac50
call fcn.1004581c
add esp, 4
push 0x1008ac54
lea ecx, [ebp - 0x1038]
call fcn.10026cb0
or ebx, 4
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 4], 3
lea eax, [ebp - 0x1038]
cmp dword [ebp - 0x1024], 8
cmovae eax, dword [ebp - 0x1038]
push eax
push edi
call fcn.10026a50
mov edx, dword [ebp - 0x1024]
cmp edx, 8
jb 0x10027130
mov ecx, dword [ebp - 0x1038]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10027126
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10027150
push edx
push ecx
call fcn.10045702
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100456c4
mov esp, ebp
pop ebp
ret 4
call fcn.100503fe
int3