Function at 0x594204
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f8755
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0xd
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 4]
lea ebx, [esi + 0x3c]
push ecx
mov ecx, ebx
call fcn.005a3a27
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
mov dword [ebx + 8], 0
mov edx, dword [esi + 0x144]
mov eax, dword [edx + 4]
lea edi, [esi + 0x140]
push eax
mov ecx, edi
call fcn.004421c5
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], 0
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 4]
lea ecx, [esi + 0x2c]
push eax
call fcn.005a3af3
mov eax, dword [esi + 0x30]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x30]
mov dword [eax], eax
mov eax, dword [esi + 0x30]
mov dword [eax + 8], eax
mov dword [esi + 0x34], 0
mov edx, dword [esi + 0x50]
mov eax, dword [edx + 4]
lea ecx, [esi + 0x4c]
push eax
call fcn.005a3af3
mov eax, dword [esi + 0x50]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x50]
mov dword [eax], eax
mov eax, dword [esi + 0x50]
mov dword [eax + 8], eax
mov al, 0xc
mov dword [esi + 0x54], 0
mov byte [ebp - 4], al
mov dword [ebp - 0x10], edi
push edi
mov byte [ebp - 4], al
call fcn.005a0f50
mov byte [ebp - 4], 0xb
mov eax, dword [esi + 0x13c]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x594313
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi + 0xb4]
lea ecx, [eax + 4]
mov byte [ebp - 4], 0xa
cmp dword [eax], ecx
je 0x594329
call fcn.00426f7d
mov byte [ebp - 4], 9
mov eax, dword [esi + 0xb0]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x59434f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov cl, 8
lea eax, [esi + 0xa0]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.0056d94b
mov cl, 7
lea eax, [esi + 0x90]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.0056d8a8
mov cl, 6
lea eax, [esi + 0x80]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.0056d8a8
mov cl, 5
lea eax, [esi + 0x70]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.00459a48
mov cl, 4
lea eax, [esi + 0x60]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.0056d8a8
mov cl, 3
lea eax, [esi + 0x4c]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.005a0bd2
mov al, 2
mov byte [ebp - 4], al
mov dword [ebp - 0x10], ebx
push ebx
mov byte [ebp - 4], al
call fcn.005a0b2f
mov cl, 1
lea eax, [esi + 0x2c]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.005a0bd2
mov byte [ebp - 4], 0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x594408
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esi + 0xc]
mov dword [ebp - 4], 0xffffffff
cmp byte [eax + 0x18], 0
je 0x594423
push eax
mov byte [eax + 0x18], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4