Function at 0x10039da4
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071b52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10039e00
lea eax, [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x10039de7
push 0
push 0
call dword [sym.imp.GDI32.dll_GetRgnBox]
jmp 0x10039dfb
mov byte [ebp - 0x12], 0
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x10039dfb
push 0
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
jmp 0x1003a052
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
push 4
lea ecx, [ebp - 0x38]
call fcn.1001a0d2
and dword [ebp - 4], 0
mov dword [ebp - 0x18], 0xb79f6a71
mov dword [ebp - 0x10], 0
jmp 0x10039e37
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jge 0x10039e4a
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x7c], 0x4ec2e0cf
jmp 0x10039e30
mov dword [ebp - 0x10], 0
jmp 0x10039e5a
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jge 0x10039e70
push dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
call fcn.1001a1d1
or dword [eax], 0xffffffff
jmp 0x10039e53
push 3
lea ecx, [ebp - 0x38]
call fcn.1001a1d1
mov dword [eax], 3
jmp 0x10039e9a
push 3
lea ecx, [ebp - 0x38]
call fcn.1001a1d1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push 3
lea ecx, [ebp - 0x38]
call fcn.1001a1d1
cmp dword [eax], 0
jl 0x10039f58
mov dword [ebp - 0x4c], 0xfffffffb
mov dword [ebp - 0x20], 0
jmp 0x10039ec4
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jge 0x10039eda
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x8c], 0x3a92bd42
jmp 0x10039ebd
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10039ef0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push 3
lea ecx, [ebp - 0x38]
call fcn.1001a1d1
mov eax, dword [eax]
cmp dword [ebp + eax*4 - 0x7c], 0xffffffff
je 0x10039f3d
push 3
lea ecx, [ebp - 0x38]
call fcn.1001a1d1
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x7c]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x4c], 1
mov esi, 0x6d0374c7
sub esi, dword [ebp - 0x4c]
push 3
lea ecx, [ebp - 0x38]
call fcn.1001a1d1
mov eax, dword [eax]
cmp esi, dword [ebp + eax*4 - 0x7c]
je 0x10039f3d
and dword [ebp - 0x48], 0
jmp 0x10039f44
mov dword [ebp - 0x48], 1
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x48]
mov dword [ebp + eax - 0x8c], ecx
jmp 0x10039e82
mov dword [ebp - 0x18], 0xfffffffa
jmp 0x10039f68
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffe6
jne 0x1003a02e
mov dword [ebp - 0x24], 0xffffffff
push 1
lea ecx, [ebp - 0x68]
call fcn.1001a0d2
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0
jmp 0x10039f97
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jge 0x10039fb0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x68]
call fcn.1001a1d1
mov dword [eax], 0xf087
jmp 0x10039f90
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x24], 0
jne 0x10039fc5
mov dword [ebp - 0x40], 1
jmp 0x10039fc9
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x40]
jle 0x10039fda
mov dword [ebp - 0x28], 1
jmp 0x10039fde
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 2
jge 0x10039fed
mov dword [ebp - 0x3c], 1
jmp 0x10039ff1
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
add eax, 0x3b16aac8
cmp dword [ebp - 0x24], eax
jl 0x1003a007
mov dword [ebp - 0x44], 1
jmp 0x1003a00b
and dword [ebp - 0x44], 0
mov esi, dword [ebp - 0x44]
sub esi, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x68]
call fcn.1001a1d1
mov dword [eax], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.1001a156
jmp 0x10039f61
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1001a156
push dword [ebp - 0x50]
push 0x6855
push 0
push dword [ebp - 0x58]
push dword [ebp - 0x54]
call fcn.10036d4e
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret