Function at 0x4cf340
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52edc8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0xc]
lea eax, [esi + 8]
push eax
call ebp
mov edx, dword [esi]
mov ebx, dword [edi + 0xb0]
mov ecx, esi
call dword [edx + 0x14]
test ebx, ebx
je 0x4cf393
cmp ebx, 1
je 0x4cf393
cmp ebx, 2
je 0x4cf393
cmp ebx, 8
jne 0x4cf5ec
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.004a5480
lea ecx, [esi + 8]
mov dword [esp + 0x28], 0
push ecx
mov dword [esp + 0x18], esi
call ebp
add edi, 0x30
mov byte [esp + 0x28], 1
mov ecx, edi
call fcn.00405370
mov edx, dword [esi]
mov ecx, esi
mov ebx, eax
mov byte [esp + 0x28], 0
call dword [edx + 0x14]
cmp ebx, 1
je 0x4cf3fc
lea eax, [esi + 8]
mov dword [esp + 0x14], esi
push eax
call ebp
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.00405370
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
mov byte [esp + 0x28], 0
call dword [edx + 0x14]
cmp edi, 3
jne 0x4cf437
mov eax, dword [0x569c90]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
mov byte [esp + 0x34], 3
call fcn.004246f0
add esp, 0xc
lea ecx, [esp + 0x14]
test eax, eax
mov byte [esp + 0x28], 0
je 0x4cf5d6
call fcn.00507d3a
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.00507aaf
mov edi, dword [esp + 0x38]
mov byte [esp + 0x28], 4
mov eax, dword [edi + 4]
test eax, eax
je 0x4cf482
mov eax, dword [edi + 8]
test eax, eax
jne 0x4cf482
mov eax, dword [edi + 0xc]
lea ebp, [edi + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4cf47b
mov edx, dword [esp + 0x14]
push edx
push eax
call fcn.004f27d5
add esp, 8
test eax, eax
je 0x4cf482
mov esi, 1
jmp 0x4cf493
lea ebp, [edi + 0xc]
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
xor esi, esi
call fcn.00507e73
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.00507d3a
test esi, esi
je 0x4cf5db
mov esi, dword [esp + 0x34]
push 1
push 0xf4b8
mov ecx, esi
mov dword [esp + 0x1c], 0xf4b9
mov dword [esp + 0x20], esi
call fcn.004de740
lea ecx, [esp + 0x38]
lea edx, [esp + 0x30]
push ecx
push esi
push edx
mov byte [esp + 0x34], 5
mov dword [esp + 0x44], 0
call fcn.004ceee0
add esp, 0xc
test eax, eax
jne 0x4cf502
push 4
push 0xf4b9
mov ecx, esi
mov byte [esp + 0x30], al
call fcn.004de740
jmp 0x4cf5db
mov eax, dword [0x569c90]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x38]
mov eax, 0x88888889
imul ecx
add edx, ecx
mov bl, 6
sar edx, 5
mov ecx, edx
mov byte [esp + 0x28], bl
shr ecx, 0x1f
add edx, ecx
push edx
lea edx, [esp + 0x14]
push str._GMT__0d:00_
push edx
call fcn.005054dc
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
call fcn.00507aaf
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 7
push ecx
mov ecx, edi
call fcn.00507e73
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], bl
call fcn.00507d3a
mov ecx, ebp
mov dword [edi + 8], 1
call fcn.00507cc5
lea ecx, [esi + 0x74]
mov dword [esi + 0x70], 1
call fcn.00507cc5
mov edx, dword [0x569c90]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0xf4ba
push ecx
mov byte [esp + 0x34], 8
call fcn.005054ef
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, esi
mov dword [esp + 0x14], 0
push 1
push edx
call fcn.004de7c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call fcn.00507d3a
mov byte [esp + 0x28], 5
lea ecx, [esp + 0x10]
call fcn.00507d3a
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00507d3a
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc