Function at 0x42f8d0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44eed8
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x4643c8]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push esi
push edi
mov eax, dword [0x4643c8]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
cmp eax, 1
jne 0x42f936
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x13], 0
jmp 0x42f94b
cmp eax, 2
jne 0x42ff3d
mov ecx, dword [ebx + 8]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x13], 1
mov esi, dword [esp + 0x1c]
cmp esi, edi
jne 0x42f95a
xor eax, eax
jmp 0x42ff42
push 2
push 0xc
lea edx, [esp + 0x120]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x42f984
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x18], eax
mov eax, 0x1d
jmp 0x42ff42
mov eax, dword [esp + 0x118]
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ecx
cmp eax, edi
ja 0x42f9a6
mov eax, dword [esp + 0x30]
jmp 0x42ff42
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x42f971
mov ecx, dword [esp + 0x2c]
add ecx, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42f97a
mov edi, dword [esp + 0x2c]
test byte [edi + 1], 0x10
jne 0x42fec0
mov edx, 7
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], eax
mov word [esp + 0x64], cx
mov dword [esp + 0x188], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], eax
mov word [esp + 0x48], cx
push eax
mov byte [esp + 0x18c], 1
mov eax, dword [ebx + 0x40]
lea ecx, [eax + 0x48]
push ecx
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x54]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x14], edx
xor edx, edx
mov dword [esp + 0x5c], esp
add eax, 0x24
push edx
push eax
mov dword [ecx + 0x10], 0
or eax, 0xffffffff
lea esi, [esp + 0x98]
mov word [ecx], dx
call fcn.004138c0
mov edx, esi
lea ecx, [edi + 8]
call fcn.004345f0
xor esi, esi
add esp, 0x2c
mov dword [esp + 0x30], eax
cmp eax, esi
jne 0x42fea3
mov eax, dword [esp + 0x3c]
cmp eax, 6
je 0x42fea3
cmp eax, 7
je 0x42fea3
cmp eax, 8
je 0x42fea3
cmp dword [esp + 0x58], esi
je 0x42fea3
cmp dword [esp + 0x74], esi
je 0x42fea3
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x14]
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], esi
je 0x42fea3
mov dword [esp + 0x28], esi
mov ecx, dword [ebx + 0x40]
mov edi, dword [ecx + 0x14]
add edi, dword [esp + 0x28]
lea esi, [esp + 0x80]
call fcn.0042ce70
mov byte [esp + 0x188], 2
mov edx, dword [ebx + 0x40]
mov edi, dword [edx + 0x14]
add edi, dword [esp + 0x28]
lea esi, [esp + 0xa8]
lea edi, [edi + 0x28]
call fcn.0042ce70
cmp byte [esp + 0x13], 0
je 0x42fb5a
test byte [esp + 0xa4], 2
jne 0x42fb64
lea ecx, [esp + 0xa8]
call fcn.0042e960
lea ecx, [esp + 0x80]
mov byte [esp + 0x188], 1
call fcn.0042e960
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x14]
mov esi, dword [esp + 0x20]
add dword [esp + 0x28], 0x50
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [esp + 0x20], esi
cmp esi, eax
jb 0x42fabd
jmp 0x42fea3
test byte [esp + 0xa4], 1
je 0x42fb05
lea edi, [esp + 0x38]
call fcn.00413ac0
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x68]
push edx
mov ecx, eax
mov byte [esp + 0x190], 4
call fcn.00414c90
add esp, 8
mov ecx, edi
mov byte [esp + 0x1b], al
mov byte [esp + 0x188], 3
call fcn.00413a40
cmp byte [esp + 0x1b], 0
je 0x42fb05
xor edi, edi
test dword [esp + 0xa0], 0x200
jne 0x42fd4a
cmp dword [esp + 0xbc], edi
je 0x42ff13
push str.___
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x12c]
push ecx
call fcn.00408320
add esp, 0xc
mov ecx, eax
lea eax, [esp + 0x48]
lea ebx, [esp + 0xd0]
mov byte [esp + 0x188], 5
call fcn.004082e0
lea esi, [esp + 0x124]
mov byte [esp + 0x188], 7
call fcn.0041c1b0
push edi
push edi
mov edx, ebx
push edx
lea eax, [esp + 0xf8]
push eax
call fcn.0042df60
push 1
lea ecx, [esp + 0xf0]
mov byte [esp + 0x18c], 8
call fcn.0042e240
test eax, eax
je 0x42fd6b
lea ecx, [esp + 0x15c]
push str.Account__
push ecx
lea ebx, [esp + 0x50]
mov esi, SysReAllocStringLen
call fcn.00407830
push eax
mov eax, str.__was_not_found_in_domain__
lea ecx, [esp + 0x14c]
mov byte [esp + 0x194], 9
call fcn.00407910
add esp, 0xc
mov ecx, eax
lea eax, [esp + 0xac]
lea ebx, [esp + 0x124]
mov byte [esp + 0x188], 0xa
call fcn.004082e0
sub esp, 0x1c
mov bl, 0xb
mov byte [esp + 0x1a4], bl
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
mov eax, 0x459e9c
call fcn.00407910
sub esp, 0x18
mov eax, str.ProcessACEsOfGivenDomains
mov ecx, esp
mov byte [esp + 0x1c0], 0xc
mov dword [esp + 0x7c], esp
call fcn.00413560
push 2
mov ecx, esi
mov byte [esp + 0x1c4], bl
call fcn.00419f60
add esp, 0x3c
lea esi, [esp + 0x124]
call fcn.0041c1b0
lea esi, [esp + 0x140]
call fcn.0041c1b0
lea esi, [esp + 0x15c]
call fcn.0041c1b0
lea ecx, [esp + 0xec]
call fcn.0042e120
lea esi, [esp + 0xd0]
call fcn.0041c1b0
lea ecx, [esp + 0xa8]
call fcn.0042e960
lea ecx, [esp + 0x80]
mov byte [esp + 0x188], 1
call fcn.0042e960
mov ebx, dword [esp + 0x14]
jmp 0x42fb25
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
test eax, eax
je 0x42fed9
dec dword [esp + 0x24]
jmp 0x42fe8b
mov eax, dword [esp + 0xa0]
test eax, 0x100
je 0x42fdf4
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.00430f30
mov edi, eax
test edi, edi
jne 0x42fe1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xec]
mov dword [esi + 0x18], eax
call fcn.0042e120
lea esi, [esp + 0xd0]
call fcn.0041c1b0
lea ecx, [esp + 0xa8]
call fcn.0042e960
lea ecx, [esp + 0x80]
call fcn.0042e960
lea esi, [esp + 0x48]
call fcn.0041c1b0
lea esi, [esp + 0x64]
call fcn.0041c1b0
mov eax, 0x1f
jmp 0x42ff42
test eax, 0x400
je 0x42fe1f
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x118]
push esi
call fcn.00430d90
mov edi, eax
test edi, edi
je 0x42fd9f
inc dword [esp + 0x24]
lea ecx, [esp + 0xec]
call fcn.0042e120
lea esi, [esp + 0xd0]
call fcn.0041c1b0
test edi, edi
je 0x42fe87
mov ebx, dword [ebp + 8]
cmp ebx, 1
jne 0x42fe4e
mov esi, dword [esp + 0x14]
call fcn.0042ebf0
jmp 0x42fe5c
cmp ebx, 2
jne 0x42fe5c
mov esi, dword [esp + 0x14]
call fcn.0042ec20
mov dword [esp + 0x1c], edi
cmp ebx, 1
jne 0x42fe73
mov eax, dword [esp + 0x14]
mov byte [eax + 0x45], bl
mov dword [eax + 4], edi
mov ebx, eax
jmp 0x42fe8b
cmp ebx, 2
jne 0x42fe87
mov eax, dword [esp + 0x14]
mov dword [eax + 8], edi
mov byte [eax + 0x46], 1
mov ebx, eax
jmp 0x42fe8b
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0xa8]
call fcn.0042e960
lea ecx, [esp + 0x80]
call fcn.0042e960
lea esi, [esp + 0x48]
call fcn.0041c1b0
lea esi, [esp + 0x64]
mov dword [esp + 0x188], 0xffffffff
call fcn.0041c1b0
mov ecx, dword [esp + 0x34]
inc ecx
mov dword [esp + 0x34], ecx
cmp ecx, dword [esp + 0x24]
jb 0x42f9a2
mov eax, dword [esp + 0x30]
jmp 0x42ff42
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xa8]
mov dword [ebx + 0x18], eax
call fcn.0042e960
lea ecx, [esp + 0x80]
call fcn.0042e960
lea esi, [esp + 0x48]
call fcn.0041c1b0
lea esi, [esp + 0x64]
call fcn.0041c1b0
mov eax, 0x1e
jmp 0x42ff42
lea ecx, [esp + 0xa8]
call fcn.0042e960
lea ecx, [esp + 0x80]
call fcn.0042e960
lea esi, [esp + 0x48]
call fcn.0041c1b0
lea esi, [esp + 0x64]
call fcn.0041c1b0
mov eax, 3
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.00436268
mov esp, ebp
pop ebp
ret 4