Function at 0x466987
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, edx
mov dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0x40], eax
push esi
mov ebx, dword [eax]
mov esi, dword [ecx + 8]
push edi
mov dword [ebp - 0x10], esi
mov al, byte [ebx]
cmp al, 0x4e
je 0x466d80
cmp al, 0x48
je 0x466d80
cmp al, 0x4b
jne 0x4669cc
mov ebx, dword [ebp + 0x14]
mov ecx, esi
push ebx
push 0
push 0x3b
pop edx
call fcn.00439d92
pop ecx
jmp 0x466d8d
mov esi, dword [ebp + 8]
and dword [ebp - 0x28], 0
and dword [ebp - 0x18], 0
mov edi, dword [ebp + 0xc]
mov esi, dword [esi + 0x40]
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0xc], esi
test dword [esi + 0x24], 0x400
jne 0x466a0d
mov eax, dword [esi + 0x20]
test eax, eax
je 0x466a0d
mov eax, dword [eax + 0x1c]
cmp byte [edi + eax], 0
je 0x466a0d
xor edx, edx
cmp dword [ebp + 0x10], edx
sete dl
mov dword [ebp - 0x14], edx
jmp 0x466a13
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
test edi, edi
jle 0x466a30
mov edx, dword [esi + 0x30]
mov edx, dword [edx + eax*4]
test edx, edx
je 0x466a2b
cmp dword [edx], ebx
je 0x466d7b
inc eax
cmp eax, edi
jl 0x466a19
movzx edx, word [esi + 0x28]
mov eax, edi
cmp edi, edx
jge 0x466a5d
mov edi, dword [esi + 0x30]
mov ecx, dword [ebp - 0x28]
mov esi, dword [edi + eax*4]
test esi, esi
je 0x466a4c
cmp dword [esi], ebx
jne 0x466a4c
inc ecx
inc eax
cmp eax, edx
jl 0x466a40
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 4]
test dword [ebx + 4], 0x800
je 0x466bed
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
cmp dword [eax], 1
je 0x466bed
mov eax, dword [ecx]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 8], eax
movzx esi, word [eax + 0x40]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x30], edi
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x38], eax
cmp edi, edx
jge 0x466b1d
mov ecx, edi
mov eax, dword [esi + 0x30]
mov eax, dword [eax + ecx*4]
cmp dword [eax], ebx
jne 0x466b0b
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 8]
dec eax
imul edi, eax, 0x18
mov eax, dword [ebp - 0x34]
push 0
mov edx, dword [edi + eax + 8]
call fcn.00448437
mov esi, eax
mov eax, dword [ebp - 0x38]
pop ecx
mov ecx, dword [ebp - 8]
push 0
mov edx, dword [edi + eax + 8]
call fcn.00448437
mov edx, dword [ebp - 0x24]
mov edi, eax
pop ecx
mov ecx, dword [ebp - 4]
push esi
call fcn.00448893
mov edx, dword [ebp - 0x20]
pop ecx
mov ecx, dword [ebp - 4]
push edi
mov dword [ebp - 0x24], eax
call fcn.00448893
mov esi, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
movzx eax, word [esi + 0x28]
inc ecx
mov dword [ebp - 0x30], ecx
cmp ecx, eax
jl 0x466aac
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp byte [eax + 0x45], 0
jne 0x466bce
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x466b5f
and dword [ebp - 0x2c], 0
cmp dword [eax], 0
jle 0x466b5f
mov edi, dword [ebp - 0x2c]
lea edx, [eax + 0x1c]
xor esi, esi
inc edi
mov word [edx], si
lea edx, [edx + 0x18]
cmp edi, dword [eax]
jl 0x466b49
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
cmp dword [eax], 1
jne 0x466b6f
mov eax, dword [eax + 8]
mov dword [ebx + 0xc], eax
jmp 0x466b87
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ecx]
shl eax, 2
push 0
push eax
call fcn.004231bb
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov edx, ebx
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x18]
mov dword [eax], ecx
xor ecx, ecx
mov eax, dword [ebp - 8]
inc ecx
push 0
push 4
or word [eax + 0x40], cx
mov ecx, dword [ebp - 4]
call fcn.00448f05
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov word [eax + 0x40], cx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x14], ecx
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
call fcn.00448b14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
call fcn.00448b14
mov eax, dword [ebp - 0x2c]
jmp 0x466c00
push 0
push 0
push 4
mov edx, ebx
call fcn.00448f05
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp eax, 4
jne 0x466c12
xor eax, eax
cmp dword [ebp - 0x14], eax
sete al
mov dword [ebp - 0x14], eax
jmp 0x466c15
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x1c]
test eax, eax
push 0
push ecx
push 0x25
pop edx
mov dword [ebp - 0x30], ecx
push 0x21
pop ecx
cmovne edx, ecx
mov ecx, dword [ebp - 0x10]
call fcn.00439d92
or dword [esi + 0x24], 0x800
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x38], 0
jne 0x466c51
mov ecx, dword [ebp - 0x10]
call fcn.00439f5e
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 0x38]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x3c], eax
add eax, dword [ebp - 0x28]
mov dword [ecx + 0x38], eax
imul eax, eax, 0xc
push 0
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call fcn.0042335a
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], ecx
test ecx, ecx
je 0x466d6a
imul eax, dword [ebp - 0x3c], 0xc
add ecx, eax
movzx eax, word [esi + 0x28]
cmp edi, eax
jge 0x466d6e
lea eax, [ecx + 8]
mov edx, edi
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, edi
shl eax, 2
sub edx, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], edx
mov eax, dword [esi + 0x30]
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + eax]
mov esi, dword [ebp - 0xc]
cmp dword [eax], ebx
jne 0x466d4f
xor eax, eax
inc eax
cmp dword [ebp - 0x2c], eax
jne 0x466ce4
push ecx
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
push 0x7b
pop edx
call fcn.00439d92
pop ecx
pop ecx
jmp 0x466d0c
cmp dword [ebp - 0x18], 0
je 0x466cf7
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
add edx, 4
mov dword [ebp - 0x38], edx
jmp 0x466cf9
xor eax, eax
push ecx
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp - 0x30]
push 0x60
pop edx
call fcn.00439d0e
add esp, 0xc
mov ecx, dword [ebp - 8]
push dword [ebp - 0x28]
push 0x4b
mov dword [ecx - 4], eax
mov ecx, dword [ebp - 0x10]
pop edx
call fcn.00439d7e
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
pop ecx
mov ecx, dword [ebp - 0x28]
add eax, ecx
cmp eax, edi
jne 0x466d43
cmp dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x30]
mov dword [edx - 8], eax
sete al
add al, 4
mov byte [edx], al
jmp 0x466d46
mov byte [edx], 0xa6
add edx, 0xc
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x34]
add dword [ebp - 0x24], 4
inc ecx
movzx eax, word [esi + 0x28]
mov dword [ebp - 0x28], ecx
add ecx, edx
cmp ecx, eax
mov ecx, dword [ebp - 0x28]
jl 0x466cb5
jmp 0x466d6e
and dword [eax + 0x38], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call fcn.00423004
mov ebx, dword [ebp + 0x14]
jmp 0x466d8e
push dword [ebp + 0x14]
mov edx, dword [ebx + 0x10]
call fcn.0044a3d4
mov ebx, eax
pop ecx
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp + 8]
call fcn.00466870
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret