Function at 0x409ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x436100
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x448fb0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebp, ecx
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], esi
call fcn.0041583d
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x409b1d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x28], edi
mov dword [esp + 0x6c], esi
call fcn.0041583d
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x409b4b
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x6c], 1
call fcn.0041583d
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x409b7a
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x6c], 2
call fcn.0041583d
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x409ba9
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x6c], 3
call fcn.0041583d
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x409bd8
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
cmp dword [esp + 0x78], 0
mov byte [esp + 0x6c], 4
je 0x40a004
mov ecx, dword [esp + 0x78]
push 2
push 0xc
lea eax, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x409c49
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, 0xfffffff0
push edi
mov dword [ebp + 0x44], eax
call fcn.00402730
mov ebp, dword [esp + 0x78]
add eax, 0x10
mov dword [ebp], eax
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x6c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40a02f
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x84]
mov dword [ecx], eax
mov dword [esp + 0x84], 0
test eax, eax
jbe 0x409ff2
xor esi, esi
or ebx, 0xffffffff
mov edi, edi
lea ecx, [esp + 0x18]
call fcn.00402530
lea ecx, [esp + 0x14]
call fcn.00402530
lea ecx, [esp + 0x24]
call fcn.00402530
lea ecx, [esp + 0x20]
call fcn.00402530
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x40a0df
mov eax, dword [esp + 0x1c]
test byte [eax + 1], 0x10
jne 0x409cd4
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.004019d0
mov edi, eax
mov eax, dword [esp + 0x1c]
cmp dword [ebp + 0xd0], 0
jne 0x409cef
test byte [eax + 1], 0x10
jne 0x409fce
test edi, edi
jne 0x409fce
add eax, 8
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call fcn.00405f40
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 5
call fcn.00403eb0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 4
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0x44], 0
jne 0x40a0e8
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.004065b0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 6
call fcn.00403eb0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 4
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
movzx edx, byte [ecx]
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, ebp
call fcn.00406bc0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 7
call fcn.00403eb0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 4
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409dca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
movzx edx, byte [ecx + 1]
push edi
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
call fcn.00406d30
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 8
call fcn.00403eb0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 4
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x43a9e4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.00403ce0
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x84], 9
call fcn.00403c20
push 0x43a9e4
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x90], 0xa
call fcn.00403ce0
lea ecx, [esp + 0x44]
push ecx
push eax
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x9c], 0xb
call fcn.00403c20
push 0x43a9e4
push eax
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0xa8], 0xc
call fcn.00403ce0
lea ecx, [esp + 0x60]
push ecx
push eax
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0xb4], 0xd
call fcn.00403c20
add esp, 0x48
push 0x43ae3c
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x78], 0xe
call fcn.00403ce0
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 0xf
call fcn.00403300
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 0xe
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ef6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 0xd
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 0xc
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 0xb
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 0xa
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 9
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409faa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 4
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409fce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x84]
inc eax
movzx esi, ax
mov dword [esp + 0x84], eax
cmp esi, dword [esp + 0x58]
jb 0x409c70
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push 0x43ae3c
lea ecx, [esp + 0x2c]
call fcn.00403aa0
mov edi, dword [esp + 0x28]
add edi, 0xfffffff0
push edi
call fcn.00402730
mov ebp, dword [esp + 0x78]
add eax, 0x10
mov dword [ebp], eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x70], 3
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a03b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x6c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a05c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a081
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a0a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a0c7
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, ebp
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x44], eax
mov esi, dword [esp + 0x28]
add esi, 0xfffffff0
push esi
call fcn.00402730
mov edi, dword [esp + 0x78]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
mov byte [esp + 0x70], 3
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a125
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
mov byte [esp + 0x6c], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a149
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
mov byte [esp + 0x6c], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a16d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
mov byte [esp + 0x6c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a191
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6c], ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40a1ab
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
jmp 0x40a0c9