Function at 0x405640
Capabilities:
Acquire debug privileges

Disassembly:
push 0xffffffffffffffff
push 0x4140d8
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x41a060]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41a060]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2a4]
mov dword [esp + 0x34], eax
xor edi, edi
mov dword [esp + 0x298], edi
mov dword [esp + 0x28], edi
call fcn.00405590
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
push ebx
mov dword [esp + 0x2c], edi
call dword [0x415240]
lea edx, [esp + 0x20]
push edx
push 0x20
mov dword [esp + 0x28], edi
call dword [0x415058]
push eax
call dword [0x415024]
test eax, eax
je 0x4056fc
lea eax, [esp + 0x4c]
push eax
push str.SeDebugPrivilege
push edi
call dword [0x415018]
mov edx, dword [esp + 0x20]
push edi
push edi
push 0x10
lea ecx, [esp + 0x54]
push ecx
push edi
push edx
mov dword [esp + 0x60], 1
mov dword [esp + 0x6c], 2
call dword [0x415004]
mov eax, dword [esp + 0x20]
push eax
call dword [0x415168]
mov ecx, dword [esp + 0x24]
push ecx
push edi
push 0x1f0fff
call dword [0x41506c]
mov esi, eax
cmp esi, edi
jne 0x405745
mov dword [esp + 0x298], 0xffffffff
mov eax, dword [esp + 0x2a0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4059aa
push 4
push 0x1000
push 0x34
push edi
mov edi, dword [0x415148]
push esi
call edi
push 4
push 0x1000
push 0x200
push 0
push esi
mov ebp, eax
call edi
push 4
push 0x1000
push 0x10
push 0
push esi
mov dword [esp + 0x28], eax
call edi
test eax, eax
mov dword [esp + 0x18], eax
je 0x405988
test ebp, ebp
je 0x405988
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0x1004
push ebx
mov dword [esp + 0x68], 1
mov dword [esp + 0x80], 0x200
mov dword [esp + 0x7c], ecx
call dword [0x415228]
xor edi, edi
test eax, eax
mov dword [esp + 0x30], eax
jle 0x40591e
xor edx, edx
cmp dword [esp + 0x2a0], edi
setne dl
mov dword [esp + 0x2c], edx
push 0
push 0x34
lea eax, [esp + 0x60]
push eax
push ebp
push esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 0
call dword [0x4150a0]
push ebp
push edi
push 0x102d
push ebx
call dword [0x415228]
mov edx, dword [esp + 0x14]
push 0
push 0x200
lea ecx, [esp + 0x94]
push ecx
push edx
push esi
call dword [0x415054]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x90]
call fcn.00406650
cmp dword [esp + 0x2c], 0
je 0x4058a6
mov ecx, dword [esp + 0x2a0]
mov eax, dword [esp + 0x1c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405869
test dx, dx
je 0x405865
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405869
add eax, 4
add ecx, 4
test dx, dx
jne 0x405843
xor eax, eax
jmp 0x40586e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x4058b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405897
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 1
cmp edi, dword [esp + 0x30]
jl 0x4057da
jmp 0x40591e
push 0x80004005
call fcn.00401050
mov ecx, dword [esp + 0x18]
push ecx
push edi
push 0x100e
push ebx
call dword [0x415228]
mov eax, dword [esp + 0x18]
push 0
push 0x10
lea edx, [esp + 0x40]
push edx
push eax
push esi
call dword [0x415054]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40591e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [0x415094]
push 0x8000
push 0
push ebp
push esi
call edi
mov ecx, dword [esp + 0x14]
push 0x8000
push 0
push ecx
push esi
call edi
mov edx, dword [esp + 0x18]
push 0x8000
push 0
push edx
push esi
call edi
push esi
call dword [0x415168]
mov dword [esp + 0x298], 0xffffffff
mov eax, dword [esp + 0x2a0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405982
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
jmp 0x4059b8
mov dword [esp + 0x298], 0xffffffff
mov eax, dword [esp + 0x2a0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004094b1
add esp, 0x288
ret 8