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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, dword [0x49c1fc]
mov ebx, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x45eb3b
mov dword [esp + 0x60], 2
and dword [esp + 0x70], 0
mov esi, dword [ebp + 8]
cmp byte [ebp + 0x18], 1
lea eax, [esp + 0x58]
mov dword [esp + 0x40], eax
ja 0x45eb24
lea esi, [ebx + 0x110]
mov ecx, esi
call fcn.0045bb36
mov al, byte [ebx + 0x118]
mov eax, dword [ebp + 0x10]
lea edi, [ebx + 0x120]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x8c], eax
cmp dword [ebx + 0x12c], 0
je 0x45eb9e
lea eax, [ebx + 0x130]
lea ecx, [esp + 0x8c]
push ecx
push eax
call fcn.0045c29f
pop ecx
pop ecx
mov esi, edx
mov edx, eax
lea eax, [esp + 0x8c]
mov ecx, edi
push eax
push esi
call fcn.0045d0db
pop ecx
pop edx
test eax, eax
je 0x45eb9e
mov edi, dword [eax - 4]
lock inc dword [edi]
jle 0x45ed3b
lea eax, [esp + 0x10]
mov dword [esp + 0x78], edi
push eax
call fcn.0045caca
pop eax
movzx eax, byte [ebp + 0x18]
mov edx, dword [ebp + 0x14]
lea ecx, [edi + 8]
push eax
call fcn.0045f166
pop ecx
test al, al
je 0x45ebbb
lea esi, [esp + 0x10]
mov edx, ebx
mov ecx, esi
push edi
call fcn.0045ef75
pop eax
cmp byte [esi], 4
jne 0x45ebcf
mov esi, dword [ebp + 8]
jmp 0x45ebde
push 0x27
push str.edge_triggered_events_are_not_supported
push 0x14
push esi
call fcn.0045bab5
add esp, 0x10
jmp 0x45ed1f
mov ecx, 0x49c174
call fcn.00401acd
test al, al
je 0x45ea42
movzx eax, al
push eax
push dword [0x49c174]
call fcn.0045fa60
pop ecx
pop edx
test al, al
je 0x45ea42
mov esi, dword [0x49c174]
mov ebx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
test ebx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
je 0x45ebe6
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
and dword [esp + 0x20], 0
xor edi, edi
inc edi
jmp 0x45ebea
mov esi, dword [ebp + 8]
lea eax, [esp + 0x10]
and dword [esi + 4], 0
mov dword [esi], 1
push eax
call fcn.0045caca
pop eax
jmp 0x45ed1f
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x78]
mov byte [esi], 4
call fcn.0045c1f8
jmp 0x45ed1f
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 8]
cmp al, 4
jne 0x45ed16
mov byte [esi], 4
jmp 0x45ed1f
xor edi, edi
xor eax, eax
lea edx, [esp + 0x10]
lea ecx, [esp + 0x40]
mov dword [edx], eax
push 0x48f824
call fcn.0045c454
pop eax
mov eax, dword [ebp + 0xc]
cmp edi, ebx
lea eax, [eax + 0x170]
mov dword [esp + 0x38], eax
jae 0x45ec2f
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], edi
inc edi
jmp 0x45ec31
xor ecx, ecx
lea eax, [esi + 0x1c]
lea edx, [esp + 0x10]
mov dword [edx], ecx
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x78]
push 0x48f824
call fcn.0045c454
pop eax
lea eax, [ebp + 0x10]
mov dword [esp + 0x3c], eax
xor eax, eax
cmp edi, ebx
jae 0x45ec76
mov eax, dword [esp + 8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], edi
lea edi, [esp + 0x10]
lea ebx, [esp + 0x8c]
mov dword [edi], eax
mov ecx, ebx
mov edx, edi
push 0x48f824
call fcn.0045c454
pop eax
lea eax, [esp + 0x40]
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x34]
mov dword [edi], eax
lea eax, [esp + 0x38]
mov dword [edi + 4], eax
lea eax, [esp + 0x78]
mov dword [edi + 8], 0x48f7dc
mov dword [edi + 0xc], eax
lea eax, [esp + 0x3c]
mov dword [edi + 0x10], eax
lea eax, [esp + 0x54]
mov dword [edi + 0x14], 0x48f834
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], eax
mov dword [eax], ecx
lea eax, [esp + 0xa0]
mov dword [edi + 0x20], 0x48f7ec
mov dword [eax], edi
lea edi, [esp + 0x58]
mov dword [eax + 4], 3
mov dword [eax + 8], edx
push eax
push esi
push edi
call fcn.0045f9c7
add esp, 0xc
cmp dword [edi + 8], 2
mov ebx, dword [ebp + 0xc]
je 0x45ea4f
lea eax, [esp + 0x60]
push edi
push eax
call fcn.0045fcfb
pop eax
pop ecx
jmp 0x45ea4f
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
lea ecx, [esp + 0x40]
call fcn.00454210
lea ecx, [esp + 0x58]
call fcn.004541c3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
ud2