Function at 0x404a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4de7a0
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.00404dd0
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 0x404ad0
mov esi, dword [esp + 0x2c]
cmp esi, dword [edi + 4]
je 0x404cae
mov ebp, dword [esi + 8]
cmp dword [ebp + 0x1c], 0
je 0x404c99
push 0x18
call fcn.004b9230
mov edi, eax
add esp, 4
test edi, edi
je 0x404b27
mov edx, dword [0x5143ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143ac
call eax
add eax, 0x10
mov dword [edi], eax
mov edx, dword [0x5143ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143ac
call eax
add eax, 0x10
mov dword [edi + 4], eax
jmp 0x404b29
xor edi, edi
lea esi, [esp + 0x20]
mov eax, ebp
mov dword [esp + 0x18], edi
call fcn.00404a20
mov dword [esp + 0x38], 0
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x404b92
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x404b87
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x404b87
call fcn.004012d0
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x404b7c
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 0x404b92
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00401450
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 0x404bba
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.00404a40
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 0x404c36
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x404c2b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x404c2b
call fcn.004012d0
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x404c1f
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 0x404c36
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, ebp
call fcn.00401450
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 0x404c5e
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.004855c0
mov ecx, 1
mov edx, ebx
mov edi, eax
call fcn.004054b0
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 0x404ca3
call fcn.004b9c0e
mov ecx, dword [esi]
mov dword [esp + 0x2c], ecx
jmp 0x404ad0
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