Function at 0x401080
Capabilities:
Enumerate gui resources
Enumerate processes
Hide graphical window
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
mov eax, dword [0x413004]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x4142a0
push 0x67
push edi
call esi
push 0x64
push 0x414238
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push edi
mov dword [esp + 0x24], 0x30
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 0x401500
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x6c
push dword [esp + 0x34]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 6
mov dword [esp + 0x48], 0x6d
mov dword [esp + 0x4c], 0x414238
call esi
mov dword [esp + 0x48], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x4142a0
push 0x414238
push 0
mov dword [0x414230], edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x4014db
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push 0x104
mov dword [esp + 0x14], eax
lea eax, [esp + 0x194]
push 0
push eax
call fcn.004028d0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x19c]
add esp, 0xc
push str..CursorLock.ini
push 0x103
push eax
push 0x411bc8
push str.procName
push str.CursorLock
call esi
push 0x104
lea eax, [esp + 0x29c]
push 0
push eax
call fcn.004028d0
add esp, 0xc
lea eax, [esp + 0x298]
push str..CursorLock.ini
push 0x103
push eax
push 0x411bf8
push str.visible
push str.CursorLock
call esi
lea eax, [esp + 0x298]
push 0x411c04
push eax
call fcn.00403c77
add esp, 8
mov dword [esp + 0x2c], 0
test eax, eax
mov dword [esp + 0x30], 0xf
lea ecx, [esp + 0x190]
mov byte [esp + 0x1c], 0
setne byte [esp + 0xc]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401248
sub ecx, edx
lea eax, [esp + 0x190]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00401660
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, dword [esp + 0x1c]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40127f
xor esi, esi
jmp 0x401366
push 0x124
lea eax, [esp + 0x70]
push 0
push eax
call fcn.004028d0
add esp, 0xc
mov dword [esp + 0x68], 0x128
lea eax, [esp + 0x68]
xor esi, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40135f
mov esi, dword [esp + 0x2c]
nop word [eax + eax]
lea edx, [esp + 0x8c]
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4012d0
sub edx, ecx
cmp dword [esp + 0x30], 0x10
lea ecx, [esp + 0x1c]
cmovae ecx, edi
cmp esi, edx
jne 0x401349
lea edx, [esp + 0x8c]
sub esi, 4
jb 0x401306
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40130b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4012f5
cmp esi, 0xfffffffc
je 0x40133f
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x401338
cmp esi, 0xfffffffd
je 0x40133f
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x401338
cmp esi, 0xfffffffe
je 0x40133f
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x401338
cmp esi, 0xffffffff
je 0x40133f
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40133f
sbb eax, eax
or eax, 1
jmp 0x401341
xor eax, eax
test eax, eax
je 0x401392
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x68]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4012c0
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
cmp eax, 0x10
jb 0x4013a2
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x401398
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4014f4
jmp 0x401398
mov esi, dword [esp + 0x70]
jmp 0x40135f
push ecx
push edi
call fcn.00401940
add esp, 8
test esi, esi
jne 0x4013d2
push esi
push str.CursorLock
push str.Process_not_found.
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x398]
xor ecx, esp
call fcn.004018ff
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
push section..text
mov dword [esp + 0x20], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x401424
push eax
push str.CursorLock
push str.Window_not_found.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x398]
xor ecx, esp
call fcn.004018ff
mov esp, ebp
pop ebp
ret 0x10
push dword [esp + 0xc]
push eax
call dword [sym.imp.Hook.dll__Hook_8]
push 0
test al, al
jne 0x401463
push str.CursorLock
push str.Hook_failed.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x398]
xor ecx, esp
call fcn.004018ff
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x50]
push 0
push 0
push eax
call esi
test eax, eax
je 0x4014ba
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x14]
push dword [esp + 0x54]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4014a9
lea eax, [esp + 0x4c]
push eax
call edi
lea eax, [esp + 0x4c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x58]
push eax
call esi
test eax, eax
jne 0x401484
call dword [sym.imp.Hook.dll__Unhook_0]
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x398]
xor ecx, esp
call fcn.004018ff
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x3a4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004018ff
mov esp, ebp
pop ebp
ret 0x10
call fcn.00403f91
int3