Function at 0x465601
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ecx + 8]
mov eax, edx
push esi
push edi
mov dword [ebp - 0x28], eax
mov edi, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ebx
mov al, byte [edi]
cmp al, 0x35
je 0x4658f9
cmp al, 0x2d
je 0x4658f9
cmp al, 0x32
jne 0x465646
mov esi, dword [ebp + 0x14]
mov ecx, ebx
push esi
push 0
push 0x46
pop edx
call fcn.00436721
pop ecx
jmp 0x465906
mov ebx, dword [ebp + 8]
and dword [ebp - 0xc], 0
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebx + 0x40]
mov dword [ebp - 0x14], 5
mov dword [ebp - 0x30], ebx
test dword [ebx + 0x24], 0x400
jne 0x465687
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x465687
mov eax, dword [eax + 0x1c]
cmp byte [ecx + eax], 0
je 0x465687
xor edx, edx
cmp dword [ebp + 0x10], edx
sete dl
mov dword [ebp - 8], edx
jmp 0x46568d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov esi, dword [ebp + 0x14]
xor eax, eax
test ecx, ecx
jle 0x4656ad
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + eax*4]
test edx, edx
je 0x4656a8
cmp dword [edx], edi
je 0x465907
inc eax
cmp eax, ecx
jl 0x465696
movzx edx, word [ebx + 0x28]
cmp ecx, edx
jge 0x4656e0
mov eax, dword [ebx + 0x30]
sub edx, ecx
mov ebx, dword [ebp - 0xc]
lea esi, [eax + ecx*4]
mov eax, dword [esi]
lea ecx, [ebx + 1]
lea esi, [esi + 4]
cmp dword [eax], edi
cmovne ecx, ebx
mov ebx, ecx
sub edx, 1
jne 0x4656c0
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0x30]
test dword [edi + 4], 0x800
je 0x465766
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
cmp dword [eax], 1
je 0x465766
mov eax, dword [ebp - 0x10]
mov edx, ecx
push edi
mov edi, dword [ebp - 0x10]
mov ecx, edi
push ebx
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
call fcn.004654d3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp byte [ecx + 0x49], 0
jne 0x465752
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
shl eax, 2
push 0
push eax
call fcn.0041ea18
mov edx, dword [ebp - 0x18]
mov ecx, edi
push eax
push 0
push 4
mov dword [ebp - 0x1c], eax
call fcn.00446593
mov edi, dword [ebp - 0x28]
add esp, 0x14
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [edi]
mov eax, dword [eax + 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x18]
jmp 0x465755
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, eax
call fcn.004456e4
mov edi, dword [edi]
mov eax, dword [ebp - 0x14]
jmp 0x46577c
mov ecx, dword [ebp - 0x10]
mov edx, edi
push 0
push 0
push 4
call fcn.00446593
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp eax, 4
jne 0x46578e
xor eax, eax
cmp dword [ebp - 8], eax
sete al
mov dword [ebp - 8], eax
jmp 0x465791
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x1c]
test eax, eax
push 0
push ecx
push 0x25
pop edx
mov dword [ebp - 0x20], ecx
push 0x21
pop ecx
cmovne edx, ecx
mov ecx, dword [ebp - 4]
call fcn.00436721
or dword [ebx + 0x24], 0x800
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x38], 0
jne 0x4657cd
mov ecx, dword [ebp - 4]
call fcn.0043696d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 0x38]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x30], eax
add eax, dword [ebp - 0xc]
mov dword [ecx + 0x38], eax
imul eax, eax, 0xc
push 0
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call fcn.0041ebb5
mov edx, eax
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov dword [eax + 0x3c], edx
test edx, edx
je 0x4658e6
imul eax, dword [ebp - 0x30], 0xc
mov ecx, dword [ebp + 0xc]
add edx, eax
movzx eax, word [ebx + 0x28]
cmp ecx, eax
jge 0x4658ea
lea eax, [edx + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], eax
mov edx, esi
mov eax, ecx
shl eax, 2
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, ecx
sub eax, esi
mov esi, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax]
cmp dword [eax], edi
jne 0x4658c8
cmp dword [ebp - 0x14], 1
jne 0x46585f
mov ecx, dword [ebp - 4]
push edx
push dword [ebp - 0x20]
push 0x7d
pop edx
call fcn.00436721
pop ecx
pop ecx
jmp 0x465887
cmp dword [ebp - 0x1c], 0
je 0x465872
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
add ecx, 4
mov dword [ebp - 0x2c], ecx
jmp 0x465874
xor eax, eax
mov ecx, dword [ebp - 4]
push edx
push eax
push dword [ebp - 0x20]
push 0x62
pop edx
call fcn.0043669d
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x32
mov dword [ecx - 4], eax
mov ecx, dword [ebp - 4]
pop edx
call fcn.0043670d
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
pop ecx
cmp eax, esi
jne 0x4658bc
cmp dword [ebp - 8], 0
mov eax, dword [ebp - 0x20]
mov dword [edx - 8], eax
sete al
add al, 4
mov byte [edx], al
jmp 0x4658bf
mov byte [edx], 0xa9
add edx, 0xc
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x18]
add dword [ebp - 0x24], 4
inc edx
mov ecx, dword [ebp - 0x30]
movzx eax, word [ebx + 0x28]
add ecx, edx
mov dword [ebp - 0x18], edx
cmp ecx, eax
jl 0x465835
mov esi, dword [ebp + 0x14]
jmp 0x4658ea
and dword [eax + 0x38], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
call fcn.0041e862
jmp 0x465907
push dword [ebp + 0x14]
mov edx, dword [edi + 0x10]
call fcn.00447aa6
mov esi, eax
pop ecx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
call fcn.004653c0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret