Function at 0x401400
Capabilities:
Access peb ldr_data
Check mutex on windows
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44a066
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x457118]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
xor esi, esi
push 0x200
lea eax, [esp + 0x6a]
push esi
push eax
mov word [esp + 0x70], si
call fcn.00432ba0
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x38], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [esp + 0x14]
push eax
mov ecx, str.BCU_EXE_RUN_ONCE_
call fcn.00401720
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
push edx
lea ebx, [esp + 0x6c]
mov dword [esp + 0x288], esi
call fcn.004017d0
mov eax, dword [eax]
add esp, 8
push eax
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or edi, 0xffffffff
mov dword [esp + 0x28], esi
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x4016ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4016ae
call fcn.004011b0
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0x401290
push 0xbb8
push ebx
push ebx
call esi
push 0x4012a0
push 0x7530
push ebx
push ebx
mov dword [esp + 0x34], eax
call esi
lea esi, [esp + 0x58]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
call fcn.004012d0
test eax, eax
je 0x401532
mov ecx, esi
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1c]
push str.GlobalBCUClient
push ebx
push 1
push edx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x4016ae
mov dword [esp + 0x18], ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
push 0x4bf
push 0x3e8
push 0
lea ecx, [esp + 0x2c]
push ecx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edx, dword [0x458a2c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x38], edi
cmp esi, 0x80
mov byte [esp + 0x280], 1
ja 0x401601
je 0x4015f2
sub esi, 0
je 0x4015f2
sub esi, 1
jne 0x40160e
push 1
push esi
push esi
push esi
lea ecx, [esp + 0x4c]
push ecx
call ebx
test eax, eax
je 0x40160e
lea esp, [esp]
cmp dword [esp + 0x40], 0x12
je 0x401606
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
call ebx
test eax, eax
jne 0x4015c0
jmp 0x40160e
mov dword [esp + 0x18], 1
call fcn.00404df0
jmp 0x40160e
cmp esi, 0xffffffff
jne 0x40160e
mov dword [esp + 0x18], 1
lea eax, [edi - 0x10]
mov byte [esp + 0x280], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401632
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x18], 0
je 0x40155b
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40165c
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push eax
push 0
call esi
mov ecx, dword [esp + 0x2c]
push ecx
push 0
call esi
mov edx, dword [esp + 0x28]
push edx
call edi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x280], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4016aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x4016d4
mov dword [esp + 0x280], edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4016d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0042e417
mov esp, ebp
pop ebp
ret 0x10