Function at 0x40128f
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x40e000
push 0xffffffffffffffff
push 0x555103
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x599508]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0xc], eax
mov edi, 0x56143c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x24]
push ebx
push eax
mov byte [esp + 0x48], 3
call fcn.0046da10
add esp, 8
test eax, eax
jne 0x40e101
push 1
push str.TEC_OCULAR__AGENT_V3_MUTEX_AGENTUSER
mov ecx, esi
call fcn.0040109b
test eax, eax
jne 0x40e0e0
mov eax, dword [0x599508]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
push 0xb3
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 5
call fcn.0052ecfd
push 0x80
lea ecx, [esp + 0x1c]
call fcn.0052ecfd
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push ebx
mov ecx, 0x5af7a8
call fcn.004012ee
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
inc eax
mov byte [esp + 0x40], 4
mov dword [esi + 4], eax
call fcn.0052a9e2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 3
call fcn.0052a9e2
mov edx, dword [esi + 8]
mov dword [esp + 0x24], edi
inc edx
mov dword [esi + 8], edx
mov eax, dword [esp + 0x28]
mov byte [esp + 0x40], 6
cmp eax, ebx
je 0x40e285
jmp 0x40e27c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
cmp eax, ebx
jle 0x40e2c3
push ebp
xor edi, edi
mov ecx, 0x5af6b8
call fcn.004012d5
cmp eax, 0x80
mov eax, dword [esp + 0x2c]
jb 0x40e132
cmp dword [edi + eax], ebx
je 0x40e24e
cmp dword [edi + eax], 0x10000
je 0x40e24e
mov eax, dword [0x59377c]
mov ecx, dword [esi + 8]
add eax, 2
lea edx, [esp + 0x14]
push eax
push ecx
push 0xb1
push edx
call fcn.0051eeb9
push 4
call fcn.00529cd7
add esp, 0x14
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x44], 7
je 0x40e182
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.0052a757
mov ebp, eax
jmp 0x40e184
xor ebp, ebp
mov byte [esp + 0x44], 3
call fcn.00528ee8
cmp eax, ebx
je 0x40e19d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
cmp eax, ebx
jne 0x40e1a1
xor eax, eax
jmp 0x40e1a4
mov eax, dword [eax + 0x1c]
push ebp
push ebx
push 0x402
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x10]
mov ecx, dword [edi + eax]
push ecx
push str.TEC_OCULAR__AGENT_V3_MUTEX_AGENTUSER
push str._s__d
push edx
call fcn.0051eea6
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, esi
push ebx
push eax
call fcn.0040109b
test eax, eax
jne 0x40e243
mov ecx, dword [0x599508]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 8
mov eax, dword [edi + edx]
push eax
push 0xb4
push ecx
call fcn.0051eeb9
add esp, 0xc
lea ecx, [esp + 0x20]
push 0x80
call fcn.0052ecfd
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebx
mov ecx, 0x5af7a8
call fcn.004012ee
mov eax, dword [esi + 4]
lea ecx, [esp + 0x20]
inc eax
mov byte [esp + 0x44], 3
mov dword [esi + 4], eax
call fcn.0052a9e2
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
inc ecx
add edi, 0xac
cmp ecx, edx
mov dword [esp + 0x1c], ecx
jl 0x40e114
pop ebp
mov edi, 0x56143c
mov dword [esp + 0x24], edi
cmp eax, ebx
mov byte [esp + 0x40], 9
je 0x40e285
push eax
call fcn.00529d00
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.0052a9e2
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], bl
call fcn.0052a9e2
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0xffffffff
call fcn.0052a9e2
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
mov eax, dword [esp + 0x28]
jmp 0x40e26f