Function at 0x417a80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49a308
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 0x4c8ec0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x10], 0x4c8ec0
mov edi, dword [ebp + 8]
mov dword [esp + 0x38], 0
mov esi, dword [edi + 0x2c]
cmp esi, dword [edi + 0x30]
jbe 0x417ad7
call fcn.00477ad6
mov edi, dword [edi + 0x20]
mov dword [esp + 0x14], edi
mov ebx, esi
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x30]
cmp dword [eax + 0x2c], esi
jbe 0x417af3
call fcn.00477ad6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
test edi, edi
je 0x417afe
cmp edi, eax
je 0x417b03
call fcn.00477ad6
cmp ebx, esi
je 0x417c7c
test edi, edi
jne 0x417b77
call fcn.00477ad6
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x417b20
call fcn.00477ad6
mov eax, dword [ebx]
test byte [eax + 0x28], 0x10
je 0x417c57
mov esi, dword [ebp + 0x14]
cmp esi, 0xffffffff
je 0x417b54
test edi, edi
jne 0x417b7b
call fcn.00477ad6
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x417b49
call fcn.00477ad6
mov ecx, dword [ebx]
cmp dword [ecx + 0x58], esi
jne 0x417c57
test edi, edi
jne 0x417b7f
call fcn.00477ad6
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x417b69
call fcn.00477ad6
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x417b83
xor eax, eax
jmp 0x417b8b
mov eax, dword [edi]
jmp 0x417b16
mov eax, dword [edi]
jmp 0x417b3f
mov eax, dword [edi]
jmp 0x417b5f
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x417ba5
mov eax, dword [ebx]
mov dword [esi], eax
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x417bbf
cmp ecx, esi
jbe 0x417bae
call fcn.00477ad6
mov eax, dword [edi]
push esi
push eax
push ebx
lea ecx, [esp + 0x28]
push ecx
mov eax, edi
call fcn.0041b5e0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x417beb
call fcn.00477ad6
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x417bd8
call fcn.00477ad6
mov edx, dword [ebp + 0x10]
mov edi, dword [ebx]
mov eax, dword [edx + 0xc]
add edi, 4
test eax, eax
jne 0x417bef
xor ecx, ecx
jmp 0x417bf7
mov eax, dword [eax]
jmp 0x417bce
mov ecx, dword [edx + 0x14]
sub ecx, eax
sar ecx, 2
mov esi, dword [edx + 0x10]
mov edx, esi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x417c14
mov eax, dword [edi]
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
add esi, 4
mov dword [ecx + 0x10], esi
jmp 0x417c31
cmp eax, esi
jbe 0x417c1d
call fcn.00477ad6
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
push esi
push eax
push edi
lea edx, [esp + 0x30]
push edx
mov eax, ecx
call fcn.0041b5e0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x417c74
call fcn.00477ad6
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x417c4a
call fcn.00477ad6
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x417c78
call fcn.00477ad6
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x417c6c
call fcn.00477ad6
add ebx, 4
jmp 0x417ae0
mov eax, dword [eax]
jmp 0x417c40
mov eax, dword [edi]
jmp 0x417c62
push 0x4c8ec0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sar eax, 2
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10