Function at 0x416de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41a1b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov edx, dword [0x4776f8]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 0xd28d4]
push esi
push edi
mov ecx, 0x4776f8
mov dword [esp + 0x18], eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
xor ebx, ebx
lea eax, [esp + 0x30]
push str.ATZ_r_n
push eax
mov dword [esp + 0x30], ebx
mov dword [ebp + 0x438], ebx
mov dword [ebp + 0xa464], ebx
call fcn.00401fe0
mov edi, dword [esp + 0x38]
mov eax, dword [edi - 4]
mov esi, dword [edi - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edi - 8]
sub eax, esi
add esp, 8
or eax, ecx
jge 0x416e6b
push esi
lea ecx, [esp + 0x34]
call fcn.00401650
mov edi, dword [esp + 0x30]
mov edx, dword [ebp]
push ebx
push esi
push edi
mov ecx, ebp
call dword [edx + 0x30]
or ebx, 0xffffffff
cmp esi, ebx
jne 0x416e99
test edi, edi
jne 0x416e85
xor esi, esi
jmp 0x416ea1
mov esi, edi
lea ecx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x416e90
sub esi, ecx
test esi, esi
jl 0x417100
cmp esi, dword [edi - 8]
jg 0x417100
mov dword [edi - 0xc], esi
mov byte [esi + edi], 0
mov eax, dword [0x4776f8]
mov ecx, 0x4776f8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov eax, dword [ebp + 0x438]
test eax, eax
mov byte [esp + 0x28], 1
jne 0x41705c
jmp 0x416ee0
movsx ecx, word [ebp + 0xd2798]
push ecx
push str.SEC_FuncInit__ATZ:_d_
call fcn.00401a00
mov edx, dword [esp + 0x20]
add esp, 8
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x416f6f
cmp eax, 0x102
jne 0x41704e
push str.___SEC_FuncInit_TimeOut__r_n
call fcn.00401a00
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416f3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x28], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x416f5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push str.___SEC_FuncInit_WAIT_OBJECT_0__r_n
call fcn.00401a00
add esp, 4
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [ebp + 0x240]
call fcn.00402260
test eax, eax
je 0x41704e
jmp 0x416fa0
movsx ecx, word [ebp + 0xd2798]
push ecx
push str.SEC_FuncInit__ATZ:_d_OK
call fcn.00401a00
mov edi, dword [ebp + 0xa464]
mov eax, dword [esp + 0x1c]
add esp, 8
test edi, edi
mov ebx, eax
je 0x417001
mov ecx, dword [eax + 4]
lea edx, [eax + 4]
lea esi, [eax + 8]
mov eax, ecx
shr ecx, 2
lea edi, [edi + ebp + 0x464]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xa464]
add eax, dword [edx]
lea ecx, [ebp + 0x464]
mov dword [esp + 0x10], eax
mov dword [ebp + 0xa464], 0
jmp 0x41700b
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
push eax
push ecx
push ebp
call fcn.004150c0
mov ecx, dword [esp + 0x1c]
push ecx
push eax
push ebp
call fcn.00413fa0
add esp, 0x18
push 0xffffffffffffffff
lea edx, [esp + 0x18]
push edx
lea ecx, [ebp + 0x240]
mov byte [ebx], 0
call fcn.00402260
test eax, eax
jne 0x416fa0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
or ebx, 0xffffffff
mov eax, dword [ebp + 0x438]
test eax, eax
je 0x416ee0
mov ebp, dword [ebp + 0x438]
lea eax, [esi - 0x10]
mov edx, ebx
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp ebp, 1
jne 0x4170b8
test edx, edx
jg 0x417085
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x28], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4170a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
cmp ebp, 4
jne 0x416f33
test edx, edx
jg 0x4170cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x28], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4170e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
push 0x80070057
call fcn.00401100
int3