Function at 0x421820
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
mov edx, dword [ebx + 8]
cmp edx, 3
je 0x42187c
cmp edx, 4
je 0x42187c
mov eax, dword [ebx + 0x14]
cmp edx, 2
jne 0x42188c
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0xffffffff
je 0x42188c
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x42185f
mov eax, dword [0x4fb114]
mov eax, dword [eax + 0x1f0]
test eax, eax
je 0x42187c
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x42187c
nop dword [eax]
cmp dword [eax + 8], ecx
je 0x421881
mov eax, dword [eax + 4]
test eax, eax
jne 0x421870
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x13c]
jmp 0x4219b1
test eax, eax
je 0x4218e8
cmp eax, 1
je 0x4218e8
cmp eax, 2
je 0x4218e8
cmp eax, 4
je 0x4218e8
cmp eax, 5
je 0x4218e8
cmp eax, 6
je 0x4218e8
cmp eax, 7
jne 0x4218be
mov eax, dword [0x4fb114]
mov ecx, dword [eax + 0x438]
jmp 0x4219b1
cmp eax, 9
jne 0x4218d3
mov eax, dword [0x4fb114]
mov ecx, dword [eax + 0xa8]
jmp 0x4219b1
cmp eax, 0xb
jne 0x42187c
mov eax, dword [0x4fb114]
mov ecx, dword [eax + 0xb0]
jmp 0x4219b1
xor ecx, ecx
cmp edx, 6
jne 0x421963
test eax, eax
jne 0x421903
mov eax, dword [0x4fb114]
mov ecx, dword [eax + 0x734]
jmp 0x4219b1
cmp eax, 1
jne 0x421918
mov eax, dword [0x4fb114]
mov ecx, dword [eax + 0x738]
jmp 0x4219b1
cmp eax, 2
jne 0x42192d
mov eax, dword [0x4fb114]
mov ecx, dword [eax + 0x73c]
jmp 0x4219b1
cmp eax, 4
jne 0x42193f
mov eax, dword [0x4fb114]
mov ecx, dword [eax + 0x740]
jmp 0x4219b1
cmp eax, 5
jne 0x421951
mov eax, dword [0x4fb114]
mov ecx, dword [eax + 0x744]
jmp 0x4219b1
cmp eax, 6
jne 0x4219b1
mov eax, dword [0x4fb114]
mov ecx, dword [eax + 0x748]
jmp 0x4219b1
mov edx, dword [ebx + 0x30]
test eax, eax
jne 0x421972
mov ecx, dword [edx + 0x238]
jmp 0x4219b1
cmp eax, 1
jne 0x42197f
mov ecx, dword [edx + 0x23c]
jmp 0x4219b1
cmp eax, 2
jne 0x42198c
mov ecx, dword [edx + 0x240]
jmp 0x4219b1
cmp eax, 4
jne 0x421999
mov ecx, dword [edx + 0x244]
jmp 0x4219b1
cmp eax, 5
jne 0x4219a6
mov ecx, dword [edx + 0x248]
jmp 0x4219b1
cmp eax, 6
jne 0x4219b1
mov ecx, dword [edx + 0x24c]
test ecx, ecx
je 0x42187c
mov eax, dword [ecx + 4]
push edi
mov edi, dword [eax + 4]
test edi, edi
je 0x4219d3
mov eax, dword [ebx + 0xc]
cmp dword [edi + 8], eax
je 0x4219e5
mov edi, dword [edi + 4]
test edi, edi
jne 0x4219c7
push str.Fatal_Error_:_Event_not_found.
call fcn.0041ff90
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebx + 0x10]
mov eax, dword [edi + 0x4c]
dec ebx
test eax, eax
je 0x421a24
mov eax, dword [eax + 4]
xor edx, edx
mov eax, dword [eax + 4]
mov ecx, eax
test ecx, ecx
je 0x421a08
nop
mov ecx, dword [ecx + 4]
inc edx
test ecx, ecx
jne 0x421a00
cmp ebx, edx
jge 0x421a24
test ebx, ebx
js 0x421a24
jle 0x421a1c
mov ecx, ebx
mov eax, dword [eax + 4]
sub ecx, 1
jne 0x421a14
test eax, eax
jne 0x421abf
push esi
test ebx, ebx
jle 0x421a67
nop dword [eax]
mov esi, dword [edi + 0x4c]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00491020
movsx ecx, ax
mov eax, dword [ebp - 4]
mov dword [eax + 8], ecx
mov edx, dword [esi + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x421a5f
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x421a56
mov dword [edx + 4], eax
sub ebx, 1
jne 0x421a30
mov esi, dword [edi + 0x4c]
xor edx, edx
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov ecx, eax
test ecx, ecx
je 0x421a80
mov ecx, dword [ecx + 4]
inc edx
test ecx, ecx
jne 0x421a78
dec edx
test esi, esi
je 0x421aa0
mov ecx, eax
xor esi, esi
test ecx, ecx
je 0x421a98
nop dword [eax]
mov ecx, dword [ecx + 4]
inc esi
test ecx, ecx
jne 0x421a90
cmp edx, esi
jge 0x421aa0
test edx, edx
jns 0x421ab4
mov ecx, dword [ebp - 8]
xor eax, eax
pop esi
push dword [eax + 0xc]
call fcn.00421ad0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
jle 0x421abe
mov eax, dword [eax + 4]
sub edx, 1
jne 0x421ab6
pop esi
push dword [eax + 0xc]
mov ecx, dword [ebp - 8]
call fcn.00421ad0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret