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

Disassembly:
push ecx
or eax, 0xffffffff
push ebx
xor ebx, ebx
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov ecx, 1
push ebp
push edi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
cmp eax, 0x20
jbe 0x421db9
mov eax, 0x20
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], ebx
cmp eax, dword [esi + 0x20]
je 0x421e1c
lea ebp, [esi + 0xd0]
mov dword [esp + 0xc], 0x20
mov eax, dword [ebp]
cmp eax, ebx
je 0x421dfa
mov dword [ebp], ebx
mov edi, edi
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + 4]
mov edi, dword [eax]
push eax
push ecx
call edx
mov eax, edi
cmp edi, ebx
jne 0x421de0
mov ecx, 1
add ebp, 0x28
sub dword [esp + 0xc], ecx
jne 0x421dd4
mov ecx, dword [esi + 0x5c]
cmp ecx, ebx
je 0x421e17
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], ebx
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x98], edx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov eax, dword [esi + 0x58]
lea ecx, [eax + eax*4 + 0x19]
inc eax
lea ebp, [esi + ecx*8]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x421e71
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x421e7e
jmp 0x421e9d
push ebx
push ebx
push ebx
push ebx
call edi
mov dword [ebp + 0x20], eax
cmp eax, ebx
je 0x421e9d
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x421e90
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jmp 0x421e9b
push ebx
push ebx
push ebx
push ebx
call edi
mov dword [ebp + 0x1c], eax
cmp eax, ebx
jne 0x421eb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x421eac
mov eax, 1
mov edi, eax
cmp eax, ebx
jne 0x421ef7
mov edx, dword [ebp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
push edx
call edi
test eax, eax
jne 0x421ed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x421ed0
mov edi, eax
jmp 0x421ef7
mov edi, 1
jmp 0x421efb
mov eax, dword [ebp + 0x1c]
push eax
call edi
test eax, eax
je 0x421ec2
push ebp
call fcn.00421a90
mov edi, eax
cmp edi, ebx
je 0x421f0b
mov eax, esi
mov dword [esi + 0x44], ebx
call fcn.00420da0
cmp edi, ebx
jle 0x421f06
movzx edi, di
or edi, 0x80070000
cmp edi, ebx
je 0x421f0b
mov dword [esi + 0x40], edi
cmp dword [esi + 0x38], ebx
jne 0x421f1d
cmp dword [esi + 0x40], ebx
jne 0x421f1d
cmp dword [esi + 0x3c], ebx
jne 0x421f1d
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x44]
neg eax
sbb eax, eax
not eax
and eax, edi
pop edi
pop ebp
pop ebx
pop ecx
ret