Function at 0x411140
Capabilities:
Query or enumerate registry value
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x419f0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
mov eax, dword [0x422538]
push ebx
push esi
push edi
push str.ConMgr_MMFData
push 0xbb80020
xor ebx, ebx
push ebx
push 4
push ebx
push 0xffffffffffffffff
mov dword [esp + 0x18c], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x404], eax
jne 0x4111a3
mov dword [0x427ca8], 1
jmp 0x41145a
push ebx
push 0xbb80000
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
mov word [eax + 1], bx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [0x4228ec]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x40], eax
push edx
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 0x410f80
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0x41dd40
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x4228ec]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push closesocket
push ebx
push 0x41dd40
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [0x41dd30]
mov edx, dword [0x41dd34]
mov dword [esp + 0x54], ecx
mov ecx, dword [0x41dd38]
mov dword [esp + 0x5c], ecx
push ebx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x5c], edx
mov edx, dword [0x41dd3c]
push ecx
push eax
mov dword [esi], eax
mov dword [esp + 0x54], 0x20
mov dword [esp + 0x58], 5
mov dword [esp + 0x6c], edx
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationA]
mov edx, dword [0x4776f8]
mov ecx, 0x4776f8
mov dword [esp + 0x14], ebx
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x68]
push 0x32
rep stosd dword es:[edi], eax
push str.SoftwareSamsungSamsung_PC_Studio_3ConMgrDevice
lea ecx, [esp + 0x18]
mov dword [esp + 0x18c], ebx
mov dword [esp + 0x20], ebx
call fcn.00404d10
push ebx
lea eax, [esp + 0x18]
mov edi, dword [esp + 0x14]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x6c]
push edx
push ebx
push ebx
push str.LOGFILEPATH
push eax
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x411325
sub eax, edx
mov dword [esp + 0x44], eax
je 0x41136f
push ebx
push 0x80
push 4
push ebx
push 1
push 0x1f01ff
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x428], eax
jne 0x41136f
mov dword [0x427ca8], 2
lea eax, [edi - 0x10]
jmp 0x411438
push str.ConMgr_DeviceEvent
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push str.ConMgr_MutexLock
push ebx
push ebx
mov dword [esi + 0x414], eax
call edi
push str.ConMgr_MutexError
push ebx
push ebx
mov dword [esi + 0x418], eax
call edi
push str.ConMgr_MutexStatus
push ebx
push ebx
mov dword [esi + 0x41c], eax
call edi
push str.ConMgr_MutexData
push ebx
push ebx
mov dword [esi + 0x420], eax
call edi
cmp dword [esi + 0x414], ebx
mov dword [esi + 0x424], eax
je 0x411427
cmp dword [esi + 0x418], ebx
je 0x411427
cmp dword [esi + 0x41c], ebx
je 0x411427
cmp dword [esi + 0x420], ebx
je 0x411427
cmp eax, ebx
je 0x411427
mov ecx, esi
call fcn.00410d40
cmp dword [esi + 0x42c], 3
je 0x411403
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040f4f0
mov ecx, esi
call fcn.0040e6f0
push str.Initialize_End
call fcn.00401a00
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00401f10
mov eax, 1
jmp 0x41145c
mov eax, dword [esp + 0x10]
mov dword [0x427ca8], 1
add eax, 0xfffffff0
mov dword [esp + 0x184], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41145a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x174]
call fcn.0041937d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret