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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c619
mov eax, dword fs:[0]
push eax
mov eax, 0x1050
call fcn.004a5740
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x103c], esi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1044], edi
mov dword [ebp - 0x1040], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x400
mov ecx, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x1040], 1
call fcn.00472f80
mov eax, dword [esi + 0x34]
mov ecx, edi
push 4
push 0x513840
mov esi, dword [eax + 8]
call fcn.00415d70
test esi, esi
jne 0x4b964d
mov esi, dword [ebp - 0x103c]
mov eax, dword [esi + 0x34]
mov edx, dword [eax + 0x20]
cmp word [edx], 0
je 0x4b95c8
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1014], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b95a7
sub ecx, dword [ebp - 0x1014]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040eff0
jmp 0x4b96c5
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004d78d0
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x810]
add esp, 0xc
push 0x400
push eax
push str._programdata_BDLogging
call esi
lea eax, [ebp - 0x810]
push str._programdata_
push eax
call fcn.004d7442
add esp, 8
test eax, eax
je 0x4b962b
xor eax, eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x810]
push 0x400
push eax
push str._ALLUSERSPROFILE_Application_DataBDLogging
call esi
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b9634
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
jmp 0x4b96b8
push 4
lea eax, [ebp - 0x1018]
xorps xmm0, xmm0
push eax
push 0
movlpd qword [ebp - 0x1018], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x1018]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b9672
sub ecx, edx
lea eax, [ebp - 0x1018]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0040eff0
push 0xb
push str.ProgramData
mov ecx, edi
call fcn.0040eff0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b96a8
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xa
push str.BDLogging
mov ecx, edi
call fcn.0040eff0
mov esi, dword [ebp - 0x103c]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b96cf
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b96e2
mov eax, dword [edi]
push 0x2000
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str.CstLogs
push edi
mov ecx, esi
call fcn.004bd0a0
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.004d78d0
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0x800
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1010]
push 0x5c
push eax
call fcn.004d739e
mov edx, eax
add esp, 8
test edx, edx
je 0x4b9741
add edx, 2
jmp 0x4b9747
lea edx, [ebp - 0x1010]
mov ecx, edx
mov dword [ebp - 0x1030], 0
xor eax, eax
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b9773
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1030]
call fcn.00415d70
mov esi, 3
mov dword [ebp - 0x1040], esi
cmp dword [ebp - 0x101c], 8
lea eax, [ebp - 0x1030]
mov ecx, dword [ebp - 0x103c]
cmovae eax, dword [ebp - 0x1030]
push eax
push edi
mov dword [ebp - 4], 1
call fcn.004bd0a0
mov edx, dword [ebp - 0x101c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4b9806
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b97fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b9a0b
push edx
push ecx
call fcn.004a44fe
add esp, 8
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5567e8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x556c4c]
cmp eax, dword [ecx + 8]
jg 0x4b98e1
jmp 0x4b9841
mov ax, word [ecx]
add ecx, 2
test ax, ax
je 0x4b99ca
jmp 0x4b9830
push 0x556c34
lea ecx, [ebp - 0x105c]
call fcn.0040f220
or esi, 4
mov dword [ebp - 0x1040], esi
cmp dword [ebp - 0x1048], 8
lea eax, [ebp - 0x105c]
mov ecx, dword [ebp - 0x103c]
cmovae eax, dword [ebp - 0x105c]
push eax
push edi
mov dword [ebp - 4], 3
call fcn.004bd0a0
mov edx, dword [ebp - 0x1048]
cmp edx, 8
jb 0x4b98c2
mov ecx, dword [ebp - 0x105c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b98b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b9a0b
push edx
push ecx
call fcn.004a44fe
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret 4
push 0x556c4c
call fcn.004a4a41
add esp, 4
cmp dword [0x556c4c], 0xffffffff
jne 0x4b9841
push 0x100
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 2
push 0
push eax
call fcn.004d78d0
add esp, 0xc
lea eax, [ebp - 0x1018]
push eax
push eax
push eax
lea eax, [ebp - 0x1038]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [ebp - 0x1028]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x1038]
push eax
movups xmmword [ebp - 0x1028], xmm0
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx eax, word [ebp - 0x101c]
push eax
movzx eax, word [ebp - 0x101e]
push eax
movzx eax, word [ebp - 0x1020]
push eax
movzx eax, word [ebp - 0x1022]
push eax
movzx eax, word [ebp - 0x1026]
push eax
movzx eax, word [ebp - 0x1028]
push eax
lea eax, [ebp - 0x110]
push str._.2d__.2d__.2d__.2d__.2d__.2d___.4d
push eax
call fcn.004b1720
lea ecx, [ebp - 0x110]
mov dword [0x556c34], 0
add esp, 0x24
mov dword [0x556c44], 0
mov dword [0x556c48], 7
lea edx, [ecx + 2]
jmp 0x4b9830
sub ecx, edx
lea eax, [ebp - 0x110]
sar ecx, 1
push ecx
push eax
mov ecx, 0x556c34
call fcn.00415d70
mov esi, 0xb
push 0x50ede0
mov dword [ebp - 0x1040], esi
call fcn.004a489b
push 0x556c4c
mov byte [ebp - 4], 0
call fcn.004a49f7
add esp, 8
jmp 0x4b9841
call fcn.004da7c4
int3