Function at 0x45ddd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [esi + 0x74]
cmp eax, 1
jne 0x45dfaf
mov eax, dword [esi + 0x64]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [eax + 0x474]
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x18], eax
call edi
mov edx, dword [ebx + 0x20]
mov ecx, 0
add edx, 1
je 0x45de33
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x45de2e
nop
mov dword [eax + 0x3c], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x45de20
inc ecx
cmp ecx, edx
jb 0x45de14
push dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call ebx
mov eax, dword [esi + 0x64]
mov eax, dword [eax + 0x4d8]
mov dword [eax + 0xd0], 0
mov eax, dword [esi + 0x64]
mov eax, dword [eax + 0x4d8]
push dword [eax + 0xd8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + 0x49c]
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 8]
cmp dword [eax + 0x20], 0
jne 0x45dee9
lea esi, [ecx + 0x14]
push esi
call edi
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x14]
push esi
test al, 0x20
je 0x45dea1
call ebx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45de80
test al, 8
je 0x45dea9
call ebx
jmp 0x45dee5
call ebx
push 0x4c
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004d6ed0
add esp, 0xc
mov dword [esp + 0x18], 1
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], 0
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
call fcn.004aab70
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x64]
call fcn.00496190
mov eax, dword [esi + 0x64]
mov esi, dword [eax + 0x474]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
push 0
mov ecx, esi
call fcn.00405590
push edi
call ebx
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + 0x49c]
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 8]
cmp dword [eax + 0x20], 0
jne 0x45e01c
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [ecx + 0x14]
push esi
call edi
nop dword [eax]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x14]
push esi
test al, 0x20
je 0x45df5e
call ebx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45df39
test al, 8
je 0x45df6d
call ebx
mov esi, dword [esp + 0x10]
jmp 0x45e01c
call ebx
push 0x4c
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004d6ed0
add esp, 0xc
mov dword [esp + 0x18], 1
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 0
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
call fcn.004aab70
mov esi, dword [esp + 0x10]
jmp 0x45e01c
cmp eax, 2
jne 0x45e01c
mov ecx, dword [esi + 0x64]
call fcn.00496190
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x78]
mov dword [ecx + 0x288], eax
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x7c]
mov dword [ecx + 0x264], eax
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x80]
mov dword [ecx + 0x260], eax
mov esi, dword [esi + 0x64]
mov eax, dword [esi + 0x260]
shr eax, 3
imul ecx, eax, 0xc8
mov eax, 0x10624dd3
mul ecx
mov eax, dword [esi + 0x4b4]
mov esi, dword [esp + 0x10]
shr edx, 6
mov dword [eax + 0x1c], edx
mov ecx, dword [esi + 0x64]
call fcn.0049a2e0
mov ecx, dword [esi + 0x64]
call fcn.00495e10
push 0
push 1
push 0x111
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
call fcn.004d9c68
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret