Function at 0x45c650
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55aa78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
lea eax, [edi + 4]
xor bl, bl
mov dword [esp + 0x24], eax
xor bh, bh
mov ecx, dword [eax]
mov byte [esp + 0x16], bl
mov byte [esp + 0x28], 1
call fcn.004361d0
mov dword [esp + 0x38], 0
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], ecx
cmp eax, ecx
je 0x45c7c5
mov edx, dword [ebp + 8]
mov bl, byte [edx]
mov byte [esp + 0x15], bl
jmp 0x45c6c5
mov edx, dword [ebp + 8]
test bl, bl
jne 0x45c6cd
xor esi, esi
jmp 0x45c6db
mov esi, edx
lea edi, [esi + 1]
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x45c6d2
sub esi, edi
mov edx, dword [eax + 0x10]
mov edi, edx
cmp edx, esi
jb 0x45c6e6
mov edi, esi
cmp dword [eax + 0x14], 0x10
jb 0x45c6f0
mov ebx, dword [eax]
jmp 0x45c6f2
mov ebx, eax
test edi, edi
je 0x45c77f
mov edx, dword [ebp + 8]
mov dword [esp + 0x18], edx
sub edi, 4
jb 0x45c721
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
cmp edx, dword [ecx]
mov ecx, dword [esp + 0x1c]
jne 0x45c726
add dword [esp + 0x18], 4
add ebx, 4
sub edi, 4
jae 0x45c706
cmp edi, 0xfffffffc
je 0x45c776
mov ecx, dword [esp + 0x18]
mov dl, byte [ebx]
cmp dl, byte [ecx]
mov ecx, dword [esp + 0x1c]
jne 0x45c76f
cmp edi, 0xfffffffd
je 0x45c776
mov ecx, dword [esp + 0x18]
mov dl, byte [ebx + 1]
cmp dl, byte [ecx + 1]
mov ecx, dword [esp + 0x1c]
jne 0x45c76f
cmp edi, 0xfffffffe
je 0x45c776
mov ecx, dword [esp + 0x18]
mov dl, byte [ebx + 2]
cmp dl, byte [ecx + 2]
mov ecx, dword [esp + 0x1c]
jne 0x45c76f
cmp edi, 0xffffffff
je 0x45c776
mov dl, byte [ebx + 3]
mov ebx, dword [esp + 0x18]
cmp dl, byte [ebx + 3]
je 0x45c776
sbb edx, edx
or edx, 1
jmp 0x45c778
xor edx, edx
test edx, edx
jne 0x45c792
mov edx, dword [eax + 0x10]
cmp edx, esi
jae 0x45c788
or edx, 0xffffffff
jmp 0x45c790
xor edx, edx
cmp dword [eax + 0x10], esi
setne dl
test edx, edx
sete dl
test dl, dl
sete dl
test dl, dl
je 0x45c7b7
mov bl, byte [esp + 0x15]
add eax, 0x90
cmp eax, ecx
jne 0x45c6c2
mov bl, byte [esp + 0x16]
mov bh, bl
jmp 0x45c7c1
mov bl, byte [eax + 0x1a]
mov bh, byte [eax + 0x1b]
mov byte [eax + 0x1a], 0
mov edi, dword [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
mov esi, dword [edi + 4]
test esi, esi
je 0x45c860
mov eax, dword [0x5c0740]
cmp eax, 0xffffffff
jne 0x45c7f9
push 0
xor edx, edx
lea ecx, [eax + 7]
call fcn.0051f2a0
movzx eax, al
add esp, 4
mov dword [0x5c0740], eax
cmp eax, 1
je 0x45c83e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x30], eax
jne 0x45c819
push esi
mov dword [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45c860
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0x34]
jne 0x45c831
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x20]
jmp 0x45c860
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi]
lea eax, [esi + 4]
push eax
jne 0x45c85a
mov dword [esi], 0
call dword [0x5c002c]
jmp 0x45c860
call dword [0x5c0030]
test bl, bl
je 0x45c8a5
test bh, bh
je 0x45c877
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x45c877
push dword [ebp + 8]
call fcn.004c79a0
cmp byte [ebp + 0xc], 0
jne 0x45c8a5
mov esi, dword [0x5c6138]
mov ecx, dword [esi + 0x1db0]
test ecx, ecx
je 0x45c894
mov eax, dword [ecx]
push 0x20
call dword [eax + 0x20]
mov ecx, dword [esi + 0x1db0]
test ecx, ecx
je 0x45c8a5
mov edx, dword [ecx]
push 4
call dword [edx + 0x20]
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8