Function at 0x420d40
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 0x420fae
cmp edx, 4
je 0x420fae
mov eax, dword [ebx + 0x14]
push esi
cmp edx, 2
jne 0x420d9e
mov esi, dword [ebx + 0x1c]
cmp esi, 0xffffffff
je 0x420d9e
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
jne 0x420d84
mov eax, dword [0x4f7f30]
mov ecx, dword [eax + 0x1d0]
mov edx, esi
call fcn.0048d580
test eax, eax
je 0x420fad
mov ecx, dword [eax + 0x13c]
jmp 0x420ec7
test eax, eax
je 0x420dfe
cmp eax, 1
je 0x420dfe
cmp eax, 2
je 0x420dfe
cmp eax, 4
je 0x420dfe
cmp eax, 5
je 0x420dfe
cmp eax, 6
je 0x420dfe
cmp eax, 7
jne 0x420dd0
mov eax, dword [0x4f7f30]
mov ecx, dword [eax + 0x418]
jmp 0x420ec7
cmp eax, 9
jne 0x420de5
mov eax, dword [0x4f7f30]
mov ecx, dword [eax + 0xa4]
jmp 0x420ec7
cmp eax, 0xb
jne 0x420fad
mov eax, dword [0x4f7f30]
mov ecx, dword [eax + 0xac]
jmp 0x420ec7
xor ecx, ecx
cmp edx, 6
jne 0x420e79
test eax, eax
jne 0x420e19
mov eax, dword [0x4f7f30]
mov ecx, dword [eax + 0x70c]
jmp 0x420ec7
cmp eax, 1
jne 0x420e2e
mov eax, dword [0x4f7f30]
mov ecx, dword [eax + 0x710]
jmp 0x420ec7
cmp eax, 2
jne 0x420e43
mov eax, dword [0x4f7f30]
mov ecx, dword [eax + 0x714]
jmp 0x420ec7
cmp eax, 4
jne 0x420e55
mov eax, dword [0x4f7f30]
mov ecx, dword [eax + 0x718]
jmp 0x420ec7
cmp eax, 5
jne 0x420e67
mov eax, dword [0x4f7f30]
mov ecx, dword [eax + 0x71c]
jmp 0x420ec7
cmp eax, 6
jne 0x420ec7
mov eax, dword [0x4f7f30]
mov ecx, dword [eax + 0x720]
jmp 0x420ec7
mov edx, dword [ebx + 0x30]
test eax, eax
jne 0x420e88
mov ecx, dword [edx + 0x238]
jmp 0x420ec7
cmp eax, 1
jne 0x420e95
mov ecx, dword [edx + 0x23c]
jmp 0x420ec7
cmp eax, 2
jne 0x420ea2
mov ecx, dword [edx + 0x240]
jmp 0x420ec7
cmp eax, 4
jne 0x420eaf
mov ecx, dword [edx + 0x244]
jmp 0x420ec7
cmp eax, 5
jne 0x420ebc
mov ecx, dword [edx + 0x248]
jmp 0x420ec7
cmp eax, 6
jne 0x420ec7
mov ecx, dword [edx + 0x24c]
test ecx, ecx
je 0x420fad
mov eax, dword [ecx + 4]
push edi
mov edi, dword [eax + 4]
test edi, edi
je 0x420eec
mov eax, dword [ebx + 0xc]
nop dword [eax]
cmp dword [edi + 8], eax
je 0x420efe
mov edi, dword [edi + 4]
test edi, edi
jne 0x420ee0
push str.Fatal_Error_:_Event_not_found.
call fcn.0041f3d0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebx + 0x10]
mov ecx, dword [edi + 0x4c]
dec ebx
mov edx, ebx
call fcn.0048d5a0
test eax, eax
jne 0x420fa1
test ebx, ebx
jle 0x420f51
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.0048cf80
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 0x420f49
nop
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x420f40
mov dword [edx + 4], eax
sub ebx, 1
jne 0x420f18
mov eax, dword [edi + 0x4c]
xor edx, edx
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov ecx, eax
test ecx, ecx
je 0x420f9f
mov ecx, dword [ecx + 4]
lea edx, [edx + 1]
test ecx, ecx
jne 0x420f62
lea ecx, [edx - 1]
xor esi, esi
mov edx, eax
mov edx, dword [edx + 4]
inc esi
test edx, edx
jne 0x420f73
cmp ecx, esi
jge 0x420f9f
test ecx, ecx
js 0x420f9f
jle 0x420fa1
mov eax, dword [eax + 4]
sub ecx, 1
jne 0x420f85
push dword [eax + 0xc]
mov ecx, dword [ebp - 8]
call fcn.00420fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
push dword [eax + 0xc]
mov ecx, dword [ebp - 8]
call fcn.00420fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret