Function at 0x45dd70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55acf8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 4]
mov dword [esp + 0x1c], eax
mov ecx, dword [eax]
mov byte [esp + 0x20], 1
call fcn.00436150
mov dword [esp + 0x30], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [esp + 0x18], ecx
cmp eax, ecx
je 0x45debc
mov edx, dword [ebp + 8]
mov bl, byte [edx]
mov byte [esp + 0x13], bl
test bl, bl
jne 0x45dddc
xor esi, esi
jmp 0x45ddea
mov esi, edx
lea edi, [esi + 1]
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x45dde1
sub esi, edi
mov edx, dword [eax + 0x10]
mov edi, edx
cmp edx, esi
jb 0x45ddf5
mov edi, esi
cmp dword [eax + 0x14], 0x10
jb 0x45ddff
mov ebx, dword [eax]
jmp 0x45de01
mov ebx, eax
test edi, edi
je 0x45de8e
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], edx
sub edi, 4
jb 0x45de30
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
cmp edx, dword [ecx]
mov ecx, dword [esp + 0x18]
jne 0x45de35
add dword [esp + 0x14], 4
add ebx, 4
sub edi, 4
jae 0x45de15
cmp edi, 0xfffffffc
je 0x45de85
mov ecx, dword [esp + 0x14]
mov dl, byte [ebx]
cmp dl, byte [ecx]
mov ecx, dword [esp + 0x18]
jne 0x45de7e
cmp edi, 0xfffffffd
je 0x45de85
mov ecx, dword [esp + 0x14]
mov dl, byte [ebx + 1]
cmp dl, byte [ecx + 1]
mov ecx, dword [esp + 0x18]
jne 0x45de7e
cmp edi, 0xfffffffe
je 0x45de85
mov ecx, dword [esp + 0x14]
mov dl, byte [ebx + 2]
cmp dl, byte [ecx + 2]
mov ecx, dword [esp + 0x18]
jne 0x45de7e
cmp edi, 0xffffffff
je 0x45de85
mov dl, byte [ebx + 3]
mov ebx, dword [esp + 0x14]
cmp dl, byte [ebx + 3]
je 0x45de85
sbb edx, edx
or edx, 1
jmp 0x45de87
xor edx, edx
test edx, edx
jne 0x45dea1
mov edx, dword [eax + 0x10]
cmp edx, esi
jae 0x45de97
or edx, 0xffffffff
jmp 0x45de9f
xor edx, edx
cmp dword [eax + 0x10], esi
setne dl
test edx, edx
sete dl
test dl, dl
jne 0x45df15
mov edx, dword [ebp + 8]
add eax, 0x90
mov bl, byte [esp + 0x13]
cmp eax, ecx
jne 0x45ddd4
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
mov esi, dword [esp + 0x1c]
mov esi, dword [esi]
test esi, esi
je 0x45df61
mov eax, dword [0x5c0740]
cmp eax, 0xffffffff
jne 0x45def5
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 0x45df3f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x30], eax
jne 0x45df1e
push esi
mov dword [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45df61
cmp byte [eax + 0x18], 0
sete bl
jmp 0x45debe
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0x34]
jne 0x45df36
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45df61
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi]
lea eax, [esi + 4]
push eax
jne 0x45df5b
mov dword [esi], 0
call dword [0x5c002c]
jmp 0x45df61
call dword [0x5c0030]
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4