Function at 0x404af0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4de580
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x40]
mov edi, ebx
call fcn.00404e40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x44]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jmp 0x404b40
mov esi, dword [esp + 0x2c]
cmp esi, dword [edi + 4]
je 0x404d1e
mov ebp, dword [esi + 8]
cmp dword [ebp + 0x1c], 0
je 0x404d09
push 0x18
call fcn.004b9140
mov edi, eax
add esp, 4
test edi, edi
je 0x404b97
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143cc
call eax
add eax, 0x10
mov dword [edi], eax
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143cc
call eax
add eax, 0x10
mov dword [edi + 4], eax
jmp 0x404b99
xor edi, edi
lea esi, [esp + 0x20]
mov eax, ebp
mov dword [esp + 0x18], edi
call fcn.00404a90
mov dword [esp + 0x38], 0
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x404c02
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x404bf7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x404bf7
call fcn.004012e0
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x404bec
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x404c02
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00401470
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404c2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x10], eax
lea esi, [esp + 0x24]
mov eax, ebp
call fcn.00404ab0
mov dword [esp + 0x38], 1
mov ecx, dword [eax]
mov esi, dword [edi + 4]
lea ebp, [edi + 4]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x404ca6
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x404c9b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x404c9b
call fcn.004012e0
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x404c8f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [ebp], ecx
jmp 0x404ca6
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, ebp
call fcn.00401470
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404cce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x40]
mov dword [edi + 0x14], 0x6a
mov esi, dword [ebx + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.004141a0
mov ecx, 1
mov edx, ebx
mov edi, eax
call fcn.00405570
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x2c]
mov dword [eax], edi
mov edi, dword [esp + 0x44]
cmp esi, dword [edi + 4]
jne 0x404d13
call fcn.004b9ac9
mov ecx, dword [esi]
mov dword [esp + 0x2c], ecx
jmp 0x404b40
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8