Function at 0x10003560
Capabilities:
Check mutex on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1016694c
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
mov eax, dword [0x101c3584]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [0x101f611c]
mov dword [esp + 0x38], eax
cmp dword [0x101f6128], ebx
je 0x10003fbe
cmp dword [0x101f6124], ebx
je 0x10003fbe
mov esi, 0xf
mov dword [esp + 0x198], esi
mov dword [esp + 0x194], ebx
mov byte [esp + 0x184], bl
mov dword [esp + 0x1c8], ebx
mov dword [esp + 0x160], esi
mov dword [esp + 0x15c], ebx
mov byte [esp + 0x14c], bl
mov dword [esp + 0x144], esi
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
mov dword [esp + 0x10c], esi
mov dword [esp + 0x108], ebx
mov byte [esp + 0xf8], bl
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
mov byte [esp + 0x1c8], 4
mov eax, str.SoftwareSSScanSamsung_Universal_Scan_Driver
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], 4
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10003680
sub eax, edx
push eax
push str.SoftwareSSScanSamsung_Universal_Scan_Driver
lea ecx, [esp + 0xe0]
call fcn.100019f0
mov byte [esp + 0x1c8], 5
cmp dword [esp + 0xf0], 0x10
mov eax, dword [esp + 0xdc]
jae 0x100036bb
lea eax, [esp + 0xdc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x14]
push ecx
push 1
push ebx
push eax
push reloc.WS2_32.dll_accept
call edi
cmp eax, ebx
je 0x10003705
cmp dword [esp + 0xf0], 0x10
mov eax, dword [esp + 0xdc]
jae 0x100036ed
lea eax, [esp + 0xdc]
lea edx, [esp + 0x14]
push edx
push 1
push ebx
push eax
push reloc.WS2_32.dll_bind
call edi
cmp eax, ebx
jne 0x10003e9f
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x24]
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.ProductName
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], 1
call esi
test eax, eax
jne 0x1000377c
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1000377c
push eax
call fcn.10138fea
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x1000377c
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push edi
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.ProductName
push edx
call esi
test eax, eax
jne 0x10003773
push edi
lea ecx, [esp + 0x114]
call fcn.10001ad0
push edi
call fcn.1013db5a
add esp, 4
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push str.ConnectionType
push eax
mov dword [esp + 0x34], 4
mov dword [esp + 0x44], ebx
call esi
test eax, eax
jne 0x100039bd
cmp dword [esp + 0x2c], ebx
jbe 0x1000382a
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
push str.Address
push eax
mov byte [esp + 0x2b], 1
mov dword [esp + 0x34], 1
call esi
test eax, eax
jne 0x100039bd
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x100039bd
push eax
call fcn.10138fea
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x100039bd
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edi
lea edx, [esp + 0x24]
push edx
push ebx
push str.Address
push eax
call esi
test eax, eax
jne 0x100039b4
lea ecx, [esp + 0x180]
jmp 0x100039ae
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push 0x101a57d0
push ecx
mov dword [esp + 0x34], 4
call esi
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x101a57d4
push edx
call esi
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push str.DeviceSelect
push eax
call esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
push str.SerialNumber
push eax
mov dword [esp + 0x34], 1
call esi
test eax, eax
jne 0x100038f3
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x100038f3
push eax
call fcn.10138fea
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x100038f3
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edi
lea edx, [esp + 0x24]
push edx
push ebx
push str.SerialNumber
push eax
call esi
test eax, eax
jne 0x100038ea
push edi
lea ecx, [esp + 0x130]
call fcn.10001ad0
push edi
call fcn.1013db5a
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
push 0x101a57f8
push eax
call esi
test eax, eax
jne 0x10003958
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x10003958
push eax
call fcn.10138fea
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x10003958
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edi
lea edx, [esp + 0x24]
push edx
push ebx
push 0x101a57f8
push eax
call esi
test eax, eax
jne 0x1000394f
push edi
lea ecx, [esp + 0xf8]
call fcn.10001ad0
push edi
call fcn.1013db5a
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
push 0x101a57a8
push eax
call esi
test eax, eax
jne 0x100039bd
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x100039bd
push eax
call fcn.10138fea
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x100039bd
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edi
lea edx, [esp + 0x24]
push edx
push ebx
push 0x101a57a8
push eax
call esi
test eax, eax
jne 0x100039b4
lea ecx, [esp + 0x148]
push edi
call fcn.10001ad0
push edi
call fcn.1013db5a
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x100039cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x4c]
push ecx
call fcn.10004690
lea edx, [esp + 0xf4]
push edx
push ecx
mov byte [esp + 0x1d0], 6
mov eax, dword [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
push ecx
lea edx, [esp + 0x198]
push edx
push ecx
lea eax, [esp + 0x74]
push 0x101a581c
push eax
call fcn.100078c0
add esp, 0xc
push eax
call fcn.10007af0
add esp, 0xc
mov ecx, eax
call fcn.1001eeb0
add esp, 4
mov ecx, eax
call fcn.1001eeb0
add esp, 4
push eax
call fcn.10007af0
add esp, 8
lea esi, [esp + 0x19c]
lea ecx, [esp + 0x4c]
call fcn.100047b0
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov byte [esp + 0x1d0], 7
push ecx
lea ecx, [esp + 0x170]
mov dword [esp + 0x188], 0xf
mov dword [esp + 0x184], ebx
mov byte [esp + 0x174], bl
call fcn.100015f0
lea edx, [esp + 0x164]
push edx
mov byte [esp + 0x1cc], 8
call fcn.10007dd0
mov eax, dword [esp + 0x16c]
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x17c], esi
jae 0x10003aab
lea eax, [esp + 0x168]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [esp + 0x38]
mov dword [ecx + 4], eax
cmp eax, ebx
je 0x10003b49
push 0xeac4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10003b49
lea ecx, [esp + 0x164]
call fcn.10001b00
lea ecx, [esp + 0x19c]
call fcn.10001b00
lea eax, [esp + 0x4c]
mov byte [esp + 0x1c8], 5
call fcn.10001c40
lea ecx, [esp + 0xd8]
call fcn.10001b00
lea ecx, [esp + 0x110]
call fcn.10001b00
lea ecx, [esp + 0xf4]
call fcn.10001b00
lea ecx, [esp + 0x12c]
call fcn.10001b00
lea ecx, [esp + 0x148]
call fcn.10001b00
lea ecx, [esp + 0x180]
call fcn.10001b00
jmp 0x10003fbe
cmp byte [esp + 0x13], bl
je 0x10003b53
xor edi, edi
jmp 0x10003bb7
push 0x4c
call fcn.1013d60d
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
je 0x10003bb3
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edx
mov byte [esp + 0x1c8], 0xa
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x18], 1
cmp dword [esp + 0x10c], esi
jae 0x10003b98
lea ecx, [esp + 0xf8]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x48]
push eax
call fcn.1000b950
jmp 0x10003bb5
xor eax, eax
mov edi, eax
mov dword [esp + 0x1c8], 8
test byte [esp + 0x18], 1
je 0x10003bd7
and dword [esp + 0x18], 0xfffffffe
lea ecx, [esp + 0x24]
call fcn.1000bb20
cmp byte [esp + 0x13], bl
je 0x10003c48
push 0x94
call fcn.1013d60d
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1c8], 0xc
cmp esi, ebx
je 0x10003c25
cmp dword [esp + 0x198], 0x10
mov eax, dword [esp + 0x184]
jae 0x10003c14
lea eax, [esp + 0x184]
push eax
push esi
call fcn.1000af90
mov dword [esi], vtable.SamsungFramework::Common::Net::STCPDeviceInfo.0
mov ecx, esi
jmp 0x10003c27
xor ecx, ecx
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x1cc], 8
call fcn.10007e40
mov byte [esp + 0x1c8], 0xd
or dword [esp + 0x18], 2
jmp 0x10003c64
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.10007ea0
mov dword [esp + 0x1c8], 0xe
or dword [esp + 0x18], 4
mov edx, dword [eax]
sub esp, 8
mov ecx, esp
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x34], esp
mov dword [ecx + 4], eax
cmp eax, ebx
je 0x10003c87
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0x118]
push edx
call fcn.1002c2b0
mov dword [esp + 0x1c8], 0xd
test byte [esp + 0x18], 4
mov esi, eax
je 0x10003cb6
and dword [esp + 0x18], 0xfffffffb
lea eax, [esp + 0x1c]
call fcn.100204a0
mov dword [esp + 0x1c8], 8
test byte [esp + 0x18], 2
je 0x10003cd1
lea eax, [esp + 0x44]
call fcn.100204a0
cmp esi, ebx
jne 0x10003ceb
mov eax, dword [esp + 0x38]
mov byte [eax], 1
cmp byte [esp + 0x13], bl
jne 0x10003cfd
mov dword [edi + 0x1c], 1
jmp 0x10003cfd
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x10003cfd
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esp + 0x17c], 0x10
jb 0x10003d17
mov edx, dword [esp + 0x168]
push edx
call fcn.1013d576
add esp, 4
cmp dword [esp + 0x1b4], 0x10
mov dword [esp + 0x17c], 0xf
mov dword [esp + 0x178], ebx
mov byte [esp + 0x168], bl
jb 0x10003d4a
mov eax, dword [esp + 0x1a0]
push eax
call fcn.1013d576
add esp, 4
mov edi, 0xf
lea ecx, [esp + 0xa0]
mov dword [esp + 0x1b4], edi
mov dword [esp + 0x1b0], ebx
mov byte [esp + 0x1a0], bl
mov byte [esp + 0x1c8], 5
call fcn.10004720
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.1013919a
add esp, 4
cmp dword [esp + 0xf0], 0x10
jb 0x10003dad
mov edx, dword [esp + 0xdc]
push edx
call fcn.1013d576
add esp, 4
cmp dword [esp + 0x128], 0x10
mov dword [esp + 0xf0], edi
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
jb 0x10003ddc
mov eax, dword [esp + 0x114]
push eax
call fcn.1013d576
add esp, 4
cmp dword [esp + 0x10c], 0x10
mov dword [esp + 0x128], edi
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
jb 0x10003e0b
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.1013d576
add esp, 4
cmp dword [esp + 0x144], 0x10
mov dword [esp + 0x10c], edi
mov dword [esp + 0x108], ebx
mov byte [esp + 0xf8], bl
jb 0x10003e3a
mov edx, dword [esp + 0x130]
push edx
call fcn.1013d576
add esp, 4
cmp dword [esp + 0x160], 0x10
mov dword [esp + 0x144], edi
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
jb 0x10003e69
mov eax, dword [esp + 0x14c]
push eax
call fcn.1013d576
add esp, 4
cmp dword [esp + 0x198], 0x10
mov dword [esp + 0x160], edi
mov dword [esp + 0x15c], ebx
mov byte [esp + 0x14c], bl
jb 0x10003e98
mov ecx, dword [esp + 0x184]
push ecx
call fcn.1013d576
add esp, 4
mov eax, esi
jmp 0x10003fc1
push str.err_sf_registry_error
push 0x101a5818
call fcn.1013dd39
add eax, 0x40
push eax
call fcn.1013dc1d
mov edi, 0x10
add esp, 0xc
cmp dword [esp + 0xf0], edi
jb 0x10003ed8
mov edx, dword [esp + 0xdc]
push edx
call fcn.1013d576
add esp, 4
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
cmp dword [esp + 0x128], edi
jb 0x10003f06
mov eax, dword [esp + 0x114]
push eax
call fcn.1013d576
add esp, 4
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
cmp dword [esp + 0x10c], edi
jb 0x10003f34
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.1013d576
add esp, 4
mov dword [esp + 0x10c], esi
mov dword [esp + 0x108], ebx
mov byte [esp + 0xf8], bl
cmp dword [esp + 0x144], edi
jb 0x10003f62
mov edx, dword [esp + 0x130]
push edx
call fcn.1013d576
add esp, 4
mov dword [esp + 0x144], esi
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
cmp dword [esp + 0x160], edi
jb 0x10003f90
mov eax, dword [esp + 0x14c]
push eax
call fcn.1013d576
add esp, 4
mov dword [esp + 0x160], esi
mov dword [esp + 0x15c], ebx
mov byte [esp + 0x14c], bl
cmp dword [esp + 0x198], edi
jb 0x10003fbe
mov ecx, dword [esp + 0x184]
push ecx
call fcn.1013d576
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.1013d581
mov esp, ebp
pop ebp
ret