Function at 0x40a900
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x45f801
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
push ebx
lea ecx, [ebp - 0xe4]
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x5c], esi
call fcn.0040b6c0
mov dword [ebp - 4], esi
call fcn.004158c3
mov ecx, eax
test ecx, ecx
jne 0x40a95d
push 0x80004005
call fcn.0040f120
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x74], eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.004165c9
xor esi, esi
mov dword [0x481f14], 0x472d5c
lea eax, [ebp - 0xb0]
mov dword [0x487440], esi
mov dword [0x487444], esi
mov dword [0x487438], esi
mov dword [0x48743c], esi
mov byte [0x487430], 0
mov byte [0x487431], 0
mov dword [ebp - 0xb0], vtable.std::_Func_impl_class__lambda_97e05ce8bf1d7a7e5b57c691517129d9___class_std::allocator_int___void___.0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x38]
mov word [ebp - 0x48], 0x100
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp + 0x28], eax
mov dword [ebp - 0x14], esi
push eax
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 5
call fcn.0040e3b0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x40aa15
mov edx, dword [ecx]
lea eax, [ebp - 0xb0]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x8c], esi
mov cl, byte [ebp - 0x48]
xor edx, edx
movzx eax, byte [ebp - 0x47]
cmp cl, 1
cmovne eax, edx
mov byte [ebp - 0x47], al
je 0x40aa33
mov dword [ebp - 0x40], 0xfa
mov dword [ebp - 0x3c], edx
push ecx
lea ecx, [ebp - 0x50]
call fcn.00414bd0
mov eax, dword [ebx + 0xb4]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x40aa53
lea esi, [edi + 0x22]
jmp 0x40b616
lea eax, [ebx + 0xb8]
mov dword [ebp + 0x28], eax
mov eax, dword [eax]
test eax, eax
je 0x40aa79
push eax
call fcn.0042f8fc
lea eax, [ebx + 0xb8]
add esp, 4
mov dword [eax], 0
jmp 0x40aa7f
lea eax, [ebx + 0xb8]
push str.rt__ccsUNICODE
push dword [ebx + 0xb4]
mov dword [0x481f14], 0x472ac0
push eax
call fcn.0042fa3d
add esp, 0xc
test eax, eax
je 0x40aaab
mov esi, 0x22
jmp 0x40b616
mov eax, dword [ebx + 0xb8]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x74], eax
call fcn.0041618c
lea eax, [ebp + 0x74]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x88]
call fcn.00416aa8
test eax, eax
je 0x40ab04
lea eax, [ebp + 0x74]
inc esi
add dword [0x487440], 1
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x5c]
adc dword [0x487444], 0
call fcn.0041638b
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp - 0x88]
call fcn.00416aa8
test eax, eax
jne 0x40aad3
lea eax, [esi - 1]
mov dword [0x481f14], 0x472af8
cdq
mov dword [ebp + 0x2c], eax
mov ecx, edx
add eax, 1
mov dword [ebp + 0x30], ecx
mov dword [0x487440], 0
adc ecx, 0
mov dword [0x487444], 0
or dword [ebx + 0x38], 4
mov dword [0x487438], eax
mov dword [0x48743c], ecx
mov byte [0x487431], 1
call fcn.004158c3
mov ecx, eax
test ecx, ecx
jne 0x40ab5f
push 0x80004005
call fcn.0040f120
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x48], eax
push str.S_1_5_32_544
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 9
call fcn.0040e500
push 1
push ecx
mov ecx, esp
mov dword [ebx + 0x48], 1
lea eax, [ebp + 0x48]
mov dword [ebp + 0x44], ecx
push eax
call fcn.0040eb20
mov ecx, ebx
call fcn.00402720
cmp dword [ebp + 0x30], 0
mov dword [ebp + 0x4c], 0
jl 0x40b51b
jg 0x40abc0
cmp dword [ebp + 0x2c], 0
jb 0x40b51b
jmp 0x40abc0
add dword [0x487440], 1
adc dword [0x487444], 0
call fcn.004158c3
test eax, eax
je 0x40a953
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 0x70], edi
mov byte [ebp - 4], 0xa
call fcn.004158c3
test eax, eax
je 0x40a953
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0x68], esi
mov ecx, dword [ebp + 0x4c]
mov byte [ebp - 4], 0xb
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x18], 0
test ecx, ecx
js 0x40b516
cmp ecx, dword [ebp - 0x5c]
jge 0x40b516
mov eax, dword [ebp - 0x60]
mov edx, dword [eax + ecx*4]
mov ecx, dword [ebp + 0x74]
add ecx, 0xfffffff0
mov dword [ebp + 0x64], ecx
lea eax, [edx - 0x10]
mov dword [ebp + 0x58], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x40ac9b
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp + 0x54], eax
jl 0x40ac8f
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x40ac8f
mov eax, dword [ebp + 0x58]
push eax
call fcn.0040eff0
mov dword [ebp + 0x58], eax
add esp, 4
mov eax, dword [ebp + 0x54]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ac84
mov eax, dword [ebp + 0x64]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0x58]
add eax, 0x10
mov dword [ebp + 0x74], eax
jmp 0x40ac9b
push dword [edx - 0xc]
lea ecx, [ebp + 0x74]
push edx
call fcn.0040ee90
push str._r_n__t
lea ecx, [ebp + 0x74]
call fcn.0040ced0
push ecx
lea ecx, [ebp + 0x74]
call fcn.0040ce20
mov eax, dword [ebp + 0x74]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x40acfc
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40acd7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40b3fe
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40b3fe
jns 0x40ad03
or esi, 0xffffffff
jmp 0x40ad21
push 0x471d9c
push eax
call fcn.00429453
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ad1c
or esi, 0xffffffff
jmp 0x40ad21
sub esi, dword [ebp + 0x74]
sar esi, 1
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x74]
call fcn.0040cc80
push eax
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 0xc
call fcn.0040f050
mov byte [ebp - 4], 0xb
or eax, 0xffffffff
mov edx, dword [ebp]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ad5a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x74]
lea edi, [esi + 2]
test edi, edi
js 0x40ae2f
cmp edi, dword [eax - 0xc]
jg 0x40ae08
lea eax, [eax + edi*2]
push 0x472b28
push eax
call fcn.00429453
mov edi, eax
add esp, 8
mov eax, dword [ebp + 0x74]
test edi, edi
je 0x40ae05
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
je 0x40ae05
mov eax, edi
lea ecx, [ebp + 0x74]
sub eax, esi
dec eax
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040cd70
push dword [eax]
call fcn.004307a4
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add esp, 4
mov dword [ebp + 0x54], eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40add4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x74]
lea ecx, [ebp + 0x74]
mov eax, dword [eax - 0xc]
sub eax, edi
sub eax, 2
push eax
lea eax, [ebp + 0x24]
push eax
call fcn.0040ccf0
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 0xe
call fcn.0040f050
mov byte [ebp - 4], 0xb
mov edx, dword [ebp + 0x24]
jmp 0x40ae9b
lea edi, [esi + 2]
test edi, edi
js 0x40ae2f
cmp edi, dword [eax - 0xc]
jg 0x40ae2f
lea eax, [eax + edi*2]
push 0x471364
push eax
call fcn.00429453
mov edi, eax
add esp, 8
test edi, edi
je 0x40ae2f
sub edi, dword [ebp + 0x74]
sar edi, 1
jmp 0x40ae32
or edi, 0xffffffff
mov eax, edi
lea ecx, [ebp + 0x74]
sub eax, esi
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0040cd70
push dword [eax]
call fcn.004307a4
mov edx, dword [ebp + 0x20]
or esi, 0xffffffff
mov dword [ebp + 0x54], eax
add esp, 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ae71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x74]
lea ecx, [ebp + 0x74]
mov eax, dword [eax - 0xc]
sub eax, edi
dec eax
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0040ccf0
push eax
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 0xd
call fcn.0040f050
mov byte [ebp - 4], 0xb
mov edx, dword [ebp + 0x1c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40aeb2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x68]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x40b50c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40aedd
push edi
lea ecx, [ebp + 0x68]
call fcn.0040ed40
mov esi, dword [ebp + 0x68]
lea eax, [edi + 1]
push eax
push esi
call fcn.00430ba6
add esp, 8
cmp edi, dword [esi - 8]
jg 0x40b50c
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp dword [esi - 0xc], eax
jne 0x40af46
or edi, 0xffffffff
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40af1f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp + 0x70]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b401
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40b401
mov eax, dword [ebp + 0x54]
lea edi, [ebx + 0x30]
mov dword [ebx + 0x34], eax
mov ecx, edi
lea eax, [ebp + 0x70]
push eax
call fcn.0040f050
push dword [ebx + 0x34]
push ecx
mov ecx, esp
push edi
mov dword [ebp + 0x64], ecx
call fcn.0040eb20
mov ecx, ebx
call fcn.00401bf0
mov eax, dword [ebx + 0x34]
cmp eax, 1
jne 0x40afa0
add dword [0x487440], 0xffffffff
push fcn.00405960
adc dword [0x487444], 0xffffffff
push ecx
mov ecx, esp
push edi
mov dword [ebp + 0x64], ecx
call fcn.0040eb20
mov ecx, ebx
call fcn.00404a40
jmp 0x40afcb
cmp eax, 4
jne 0x40afce
add dword [0x487440], 0xffffffff
push fcn.00405960
adc dword [0x487444], 0xffffffff
push ecx
mov ecx, esp
push edi
mov dword [ebp + 0x64], ecx
call fcn.0040eb20
mov ecx, ebx
call fcn.004055d0
mov dword [ebp + 0x6c], eax
cmp dword [esi - 0xc], 0
jge 0x40afd9
or eax, 0xffffffff
jmp 0x40aff4
push 0x472b30
push esi
call fcn.00429453
add esp, 8
test eax, eax
jne 0x40aff0
or eax, 0xffffffff
jmp 0x40aff4
sub eax, esi
sar eax, 1
xor ecx, ecx
mov edi, 4
cmp eax, 0xffffffff
cmove edi, ecx
mov dword [ebp + 0x64], edi
cmp dword [esi - 0xc], ecx
jge 0x40b00e
or eax, 0xffffffff
jmp 0x40b029
push 0x472b38
push esi
call fcn.00429453
add esp, 8
test eax, eax
jne 0x40b025
or eax, 0xffffffff
jmp 0x40b029
sub eax, esi
sar eax, 1
or edi, 8
cmp eax, 0xffffffff
cmove edi, dword [ebp + 0x64]
cmp dword [esi - 0xc], 0
jge 0x40b03e
or eax, 0xffffffff
jmp 0x40b059
push 0x472b40
push esi
call fcn.00429453
add esp, 8
test eax, eax
jne 0x40b055
or eax, 0xffffffff
jmp 0x40b059
sub eax, esi
sar eax, 1
mov ecx, edi
or ecx, 1
cmp eax, 0xffffffff
cmove ecx, edi
cmp dword [esi - 0xc], 0
mov dword [ebp + 0x58], ecx
jge 0x40b072
or eax, 0xffffffff
jmp 0x40b090
push 0x472b48
push esi
call fcn.00429453
mov ecx, dword [ebp + 0x58]
add esp, 8
test eax, eax
jne 0x40b08c
or eax, 0xffffffff
jmp 0x40b090
sub eax, esi
sar eax, 1
mov edi, ecx
or edi, 2
cmp eax, 0xffffffff
push 0
lea eax, [ebp + 0x5c]
cmove edi, ecx
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x40b0fc
cmp byte [ebx + 0x2c], al
je 0x40b420
or edi, 0xffffffff
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b0d5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp + 0x70]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b401
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40b401
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x40]
push eax
push dword [ebp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x40b4b7
mov ecx, dword [ebp + 0x40]
test ecx, 0x1000
je 0x40b13a
or edi, 0x80000000
mov eax, ecx
mov esi, edi
or esi, 0x20000000
and eax, 0x600
cmove esi, edi
jmp 0x40b142
mov esi, edi
or esi, 0x20000000
test ecx, 0x2000
je 0x40b164
mov eax, esi
or eax, 0x40000000
mov esi, eax
or esi, 0x10000000
and ecx, 0xa00
cmove esi, eax
jmp 0x40b16a
or esi, 0x10000000
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x34]
push eax
push dword [ebp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
je 0x40b3e0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x38]
push eax
push dword [ebp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorGroup]
test eax, eax
je 0x40b3e0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x40b3e0
cmp dword [ebp + 0x14], 0
jne 0x40b21d
push 0x472b50
lea ecx, [ebp + 0x3c]
call fcn.0040e590
lea eax, [ebp + 0x70]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp + 0x10]
push 0x472b54
push eax
call fcn.0040c990
add esp, 8
mov byte [ebp - 4], 0x10
mov ecx, esp
lea edx, [ebp + 0x3c]
push edx
push eax
push ecx
call fcn.0040cb30
add esp, 0xc
mov ecx, ebx
push 2
call fcn.00401d20
lea ecx, [ebp + 0x10]
call fcn.0040f100
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 0xb
call fcn.0040f100
xor eax, eax
mov dword [ebp + 0x50], eax
jmp 0x40b220
mov eax, dword [ebp + 0x50]
push dword [ebp + 0x5c]
push 1
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push 0
push eax
push esi
push dword [ebp + 0x54]
lea eax, [ebp + 0x70]
push ecx
mov ecx, esp
push eax
mov dword [ebp + 0x64], ecx
call fcn.0040eb20
lea ecx, [ebp - 0xe4]
call fcn.0040bd40
mov esi, eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp + 0x6c], esi
mov dword [ebx + 0x28], eax
test esi, esi
je 0x40b3ea
cmp eax, 2
je 0x40b39d
cmp eax, 3
je 0x40b39d
cmp eax, 5
je 0x40b39d
push eax
lea eax, [ebp + 0x44]
mov ecx, ebx
push eax
call fcn.00402a10
mov esi, eax
lea eax, [ebp + 0x70]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp + 4]
push str.Writing_SD_to__
push eax
call fcn.0040c990
push str.__failed_with:
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 0x12
push eax
call fcn.0040ca60
push esi
push eax
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 0x13
push eax
call fcn.0040cb30
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp + 0xc]
push str.ERROR:
push eax
call fcn.0040c990
add esp, 0x30
push eax
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 0x17
call fcn.0040f050
mov byte [ebp - 4], 0x14
or edi, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b30a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 4], 0
je 0x40b327
push ecx
mov ecx, esp
lea eax, [ebp + 0x60]
push eax
mov dword [ebp + 0x64], ecx
call fcn.0040eb20
mov eax, dword [ebx + 4]
call eax
add esp, 4
cmp dword [ebx + 0xc4], 0
je 0x40b365
push 0x470a3c
push 0x470a44
lea ecx, [ebp + 0x60]
call fcn.0040d0f0
push dword [ebp + 0x60]
push 0x470a48
push dword [ebx + 0xc4]
call fcn.0040eb00
push dword [ebx + 0xc4]
mov esi, eax
call fcn.0042f577
add esp, 0x10
mov byte [ebp - 4], 0x13
mov eax, edi
mov edx, dword [ebp + 0x60]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b383
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp + 8]
call fcn.0040f100
lea ecx, [ebp + 4]
call fcn.0040f100
lea ecx, [ebp + 0x44]
call fcn.0040f100
jmp 0x40b3a0
or edi, 0xffffffff
mov eax, dword [ebx + 0x28]
cmp eax, 5
je 0x40b3bc
cmp eax, 2
je 0x40b3bc
cmp eax, 3
je 0x40b3bc
cmp byte [ebx + 0x2c], 0
je 0x40b49e
lea ecx, [ebp + 0x68]
mov dword [ebx + 0x28], 0
mov dword [ebp + 0x6c], 0
call fcn.0040f100
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 9
call fcn.0040f100
jmp 0x40b401
cmp byte [ebx + 0x2c], 0
je 0x40b474
lea ecx, [ebp + 0x68]
call fcn.0040f100
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 9
call fcn.0040f100
or edi, 0xffffffff
mov esi, dword [ebp + 0x4c]
inc esi
mov eax, esi
mov dword [ebp + 0x4c], esi
cdq
cmp edx, dword [ebp + 0x30]
jg 0x40b46c
jl 0x40abc0
cmp eax, dword [ebp + 0x2c]
ja 0x40b46c
jmp 0x40abc0
mov dword [ebp + 0x6c], 0x1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edi, 0xffffffff
mov dword [ebx + 0x28], eax
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b44e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp + 0x70]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b46c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x6c]
jmp 0x40b51d
mov esi, 0x1b
mov dword [ebp + 0x6c], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x68]
mov dword [ebx + 0x28], eax
call fcn.0040f100
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 9
call fcn.0040f100
or edi, 0xffffffff
jmp 0x40b51d
lea ecx, [ebp + 0x68]
call fcn.0040f100
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 9
call fcn.0040f100
mov esi, dword [ebp + 0x6c]
jmp 0x40b51d
mov dword [ebp + 0x6c], 0x11
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edi, 0xffffffff
mov dword [ebx + 0x28], eax
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b4e5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp + 0x70]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b46c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x6c]
jmp 0x40b51d
push 0x80070057
call fcn.0040f120
call fcn.00415b4d
xor esi, esi
cmp dword [ebp - 0x4c], 0
mov byte [ebp - 0x48], 0
jne 0x40b541
push 1
call fcn.00426925
add esp, 4
cmp dword [ebp - 0x4c], 0
jne 0x40b541
push 1
call fcn.00426925
add esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x4c]
cmp ecx, eax
jne 0x40b55a
push 5
call fcn.00426925
mov ecx, dword [ebp - 0x4c]
add esp, 4
push 0
push ecx
push dword [ebp - 0x50]
call fcn.004269bb
add esp, 0xc
test eax, eax
je 0x40b576
push 2
call fcn.00426925
add esp, 4
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov byte [0x487430], 1
mov dword [0x481f14], 0x471980
call fcn.00401310
mov dword [0x487438], 0
mov dword [0x48743c], 0
mov dword [0x487440], 0
mov dword [0x487444], 0
cmp esi, 0x2c
jne 0x40b5d5
mov dword [ebx + 0x28], 0
mov dword [ebp + 0x6c], 0
mov ebx, dword [ebp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x40b5ed
push eax
call fcn.0042f8fc
add esp, 4
mov dword [ebx], 0
mov byte [ebp - 4], 8
mov eax, edi
mov edx, dword [ebp + 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b60b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x64]
call fcn.004161a3
mov esi, dword [ebp + 0x6c]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40b639
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x4c], 0
setne al
test al, al
je 0x40b649
call fcn.0042c487
lea ecx, [ebp - 0x88]
call fcn.004165ed
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 0x74]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b672
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xe4], vtable.CSD.0
call fcn.0040b840
mov eax, dword [ebp - 0xc8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40b6a9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x78]
pop ebp
ret