Function at 0x471a40
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x472f3f
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x482534]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x482534]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x68], 1
mov ebp, dword [0x486694]
call fcn.004507b0
xor edi, edi
push 0xffffffffffffffff
lea eax, [ebp + 8]
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], edi
mov word [esp + 0x30], di
call fcn.004027b0
push edi
lea eax, [esp + 0x74]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x2c]
mov byte [esp + 0x70], 2
call fcn.00402a30
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x94]
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], edi
mov word [esp + 0x4c], di
call fcn.004027b0
mov byte [esp + 0x68], 3
mov edx, dword [0x483a0c]
mov eax, dword [edx + 0xc]
mov ecx, 0x483a0c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x68], 4
mov eax, dword [ebx]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.004029c0
add eax, 0x10
mov dword [esi], eax
sub esp, 0x1c
mov byte [esp + 0x88], 5
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
push edi
lea eax, [esp + 0x68]
lea esi, [esp + 0x40]
mov word [ecx + 4], di
call fcn.004027b0
mov ecx, esi
mov byte [esp + 0x88], 4
call fcn.00471850
mov ebx, dword [esp + 0x18]
sub esp, 0x1c
mov esi, esp
mov eax, ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x38], esp
mov word [esi + 4], di
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x471b80
sub eax, ecx
sar eax, 1
push eax
push ebx
call fcn.00402bc0
sub esp, 0x1c
mov byte [esp + 0xa0], 6
mov ecx, esp
mov dword [esp + 0x58], esp
push 0xffffffffffffffff
mov esi, 7
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], edi
push edi
lea eax, [esp + 0x64]
mov word [ecx + 4], di
call fcn.004027b0
mov ecx, ebp
mov byte [esp + 0xa0], 4
call fcn.004713b0
cmp eax, edi
jne 0x471bed
cmp dword [ebp + 4], 4
je 0x471be0
mov dword [ebp + 0x48], edi
jmp 0x471be3
mov dword [ebp + 0x4c], edi
mov ecx, dword [ebp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.0044fe40
add ebx, 0xfffffff0
mov byte [esp + 0x68], 3
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x471c13
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ebx, 8
cmp dword [esp + 0x58], ebx
jb 0x471c2b
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00404706
add esp, 4
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov word [esp + 0x44], di
jb 0x471c4b
mov edx, dword [esp + 0x28]
push edx
call fcn.00404706
add esp, 4
cmp dword [esp + 0x88], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
jb 0x471c6e
mov eax, dword [esp + 0x74]
push eax
call fcn.00404706
add esp, 4
cmp dword [esp + 0xa4], ebx
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], edi
mov word [esp + 0x74], di
jb 0x471c9a
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00404706
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0040470b
add esp, 0x58
ret 0x38