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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529ce9
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.004fd900
mov eax, dword [0x566090]
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 ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1048], edi
mov dword [ebp - 0x1044], 0
mov dword [edi], 0
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push ecx
mov dword [ebp - 4], eax
mov ecx, edi
mov dword [ebp - 0x1044], 1
call fcn.0043fb90
mov eax, dword [ebx + 0x34]
mov ecx, edi
push 4
push 0x546f6c
mov esi, dword [eax + 8]
call fcn.00445880
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x43ffb6
mov eax, dword [ebx + 0x34]
mov edx, dword [eax + 0x20]
cmp word [edx], 0
je 0x43ff23
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43ff00
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00445020
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x440018
push 0x800
lea eax, [ebp - 0x81c]
push 0
push eax
call fcn.004feb20
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.004fdfe7
add esp, 8
test eax, eax
je 0x43ff86
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]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43ff90
sub ecx, edx
lea eax, [ebp - 0x81c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00445020
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x440018
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 0x43ffd2
sub ecx, edx
lea eax, [ebp - 0x1c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00445020
push 0xb
push str.ProgramData
mov ecx, edi
call fcn.00445020
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x440005
mov eax, dword [edi]
push 0
push eax
call esi
push 0xa
push str.BDLogging
mov ecx, edi
call fcn.00445020
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x440022
mov eax, dword [edi]
push 0
push eax
call esi
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x440031
mov eax, dword [edi]
push 0x2000
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [edi + 0x14]
mov eax, edi
cmp ebx, 8
jb 0x440049
mov eax, dword [edi]
mov ecx, dword [edi + 0x10]
mov edx, SysReAllocString
mov dword [ebp - 0x1040], ecx
cmp word [eax + ecx*2 - 2], 0x5c
je 0x440154
cmp ecx, ebx
jae 0x440082
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp ebx, 8
jb 0x440076
mov eax, dword [edi]
mov dword [eax + ecx*2], 0x5c
jmp 0x440154
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x44074a
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x1038], eax
or esi, 7
cmp esi, edx
jbe 0x4400a5
mov esi, edx
jmp 0x4400bd
mov ecx, ebx
mov eax, edx
shr ecx, 1
sub eax, ecx
cmp ebx, eax
jbe 0x4400b5
mov esi, edx
jmp 0x4400bd
lea eax, [ecx + ebx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.004457f0
mov ecx, eax
mov dword [edi + 0x14], esi
mov eax, dword [ebp - 0x1038]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x1040]
add eax, eax
mov dword [ebp - 0x103c], ecx
push eax
lea esi, [ecx + eax]
mov dword [ebp - 0x1038], esi
cmp ebx, 8
jb 0x44013c
mov esi, dword [edi]
push esi
push ecx
call fcn.004fe5a0
mov eax, dword [ebp - 0x1038]
lea ebx, [ebx*2 + 2]
add esp, 0xc
mov dword [eax], 0x5c
cmp ebx, 0x1000
jb 0x440130
mov ecx, dword [esi - 4]
invalid